Vregion definitions.
More...
|
| errval_t | vregion_map (struct vregion *point, struct vspace *vspace, struct memobj *memobj, size_t offset, size_t size, vregion_flags_t flags) |
| | Setup a new vregion anywhere in the address space. More...
|
| |
| errval_t | vregion_map_aligned (struct vregion *point, struct vspace *vspace, struct memobj *memobj, size_t offset, size_t size, vregion_flags_t flags, size_t alignment) |
| | Setup a new vregion with alignment constraints in an address space. More...
|
| |
| errval_t | vregion_map_fixed (struct vregion *point, struct vspace *vspace, struct memobj *memobj, size_t offset, size_t size, genvaddr_t addr, vregion_flags_t flags) |
| | Setup a new vregion at a specified location. More...
|
| |
| errval_t | vregion_destroy (struct vregion *region) |
| | Destroy the given region. More...
|
| |
| errval_t | vregion_pagefault_handler (struct vregion *region, genvaddr_t addr, vm_fault_type_t type) |
| | Page fault handler. More...
|
| |
| errval_t vregion_destroy |
( |
struct vregion * |
vregion | ) |
|
Destroy the given region.
- Returns
- SYS_ERR_OK on success, error code on failure
| errval_t vregion_map |
( |
struct vregion * |
vregion, |
|
|
struct vspace * |
vspace, |
|
|
struct memobj * |
memobj, |
|
|
size_t |
offset, |
|
|
size_t |
size, |
|
|
vregion_flags_t |
flags |
|
) |
| |
Setup a new vregion anywhere in the address space.
- Parameters
-
| vregion | The vregion |
| vspace | The vspace to associate with the vregion |
| memobj | The memory object to associate with the region |
| offset | Offset into the memory object |
| size | Size of the memory object to use |
| flags | Vregion specific flags |
| errval_t vregion_map_aligned |
( |
struct vregion * |
vregion, |
|
|
struct vspace * |
vspace, |
|
|
struct memobj * |
memobj, |
|
|
size_t |
offset, |
|
|
size_t |
size, |
|
|
vregion_flags_t |
flags, |
|
|
size_t |
alignment |
|
) |
| |
Setup a new vregion with alignment constraints in an address space.
- Parameters
-
| vregion | The vregion |
| vspace | The vspace to associate with the vregion |
| memobj | The memory object to associate with the region |
| offset | Offset into the memory object |
| size | Size of the memoryg object to use |
| flags | Vregion specific flags |
| alignment | Minimum required alignment of mapping (may be increased) |
| errval_t vregion_map_fixed |
( |
struct vregion * |
vregion, |
|
|
struct vspace * |
vspace, |
|
|
struct memobj * |
memobj, |
|
|
size_t |
offset, |
|
|
size_t |
size, |
|
|
genvaddr_t |
addr, |
|
|
vregion_flags_t |
flags |
|
) |
| |
Setup a new vregion at a specified location.
- Parameters
-
| vregion | The region |
| vspace | The vspace to associate with the region |
| memobj | The memory object to associate with the region |
| offset | Offset into the memory object |
| size | Size of the memory object to use |
| addr | Address to create the vregion for |
| flags | Vregion specific flags |
| errval_t vregion_pagefault_handler |
( |
struct vregion * |
vregion, |
|
|
genvaddr_t |
addr, |
|
|
vm_fault_type_t |
type |
|
) |
| |
Page fault handler.
- Parameters
-
| vregion | The vregion the fault occured in |
| addr | The faulting address |
| type | The fault type |
Look up the appropriate memory object and forward the fault to it