Defines | |
#define | L4RM_MAP 0x01000000 |
Immediately map attached region. | |
#define | L4RM_LOG2_ALIGNED 0x02000000 |
Align to address. | |
#define | L4RM_LOG2_ALLOC 0x04000000 |
Allocate whole sized region. | |
#define | L4RM_SUPERPAGE_ALIGNED 0x08000000 |
Align to superpage size. | |
Functions | |
L4_CV L4_INLINE int | l4rm_attach (const l4dm_dataspace_t *ds, l4_size_t size, l4_offs_t ds_offs, l4_uint32_t flags, void **addr) |
Attach dataspace. | |
L4_CV L4_INLINE int | l4rm_attach_to_region (const l4dm_dataspace_t *ds, const void *addr, l4_size_t size, l4_offs_t ds_offs, l4_uint32_t flags) |
Attach dataspace to specified region. | |
L4_CV L4_INLINE int | l4rm_area_attach (const l4dm_dataspace_t *ds, l4_uint32_t area, l4_size_t size, l4_offs_t ds_offs, l4_uint32_t flags, void **addr) |
Attach dataspace to area. | |
L4_CV L4_INLINE int | l4rm_area_attach_to_region (const l4dm_dataspace_t *ds, l4_uint32_t area, const void *addr, l4_size_t size, l4_offs_t ds_offs, l4_uint32_t flags) |
Attach dataspace to specified region in area. | |
L4_CV int | l4rm_detach (const void *addr) |
Detach dataspace. |
L4_CV L4_INLINE int l4rm_attach | ( | const l4dm_dataspace_t * | ds, | |
l4_size_t | size, | |||
l4_offs_t | ds_offs, | |||
l4_uint32_t | flags, | |||
void ** | addr | |||
) |
Attach dataspace.
ds | Dataspace id | |
size | Size | |
ds_offs | Offset in dataspace | |
flags | Flags:
|
addr | Start address |
References L4RM_DEFAULT_REGION_AREA.
L4_CV L4_INLINE int l4rm_attach_to_region | ( | const l4dm_dataspace_t * | ds, | |
const void * | addr, | |||
l4_size_t | size, | |||
l4_offs_t | ds_offs, | |||
l4_uint32_t | flags | |||
) |
Attach dataspace to specified region.
ds | Dataspace id | |
addr | Start address, must be page aligned | |
size | Size | |
ds_offs | Offset in dataspace | |
flags | Flags:
|
References L4RM_DEFAULT_REGION_AREA.
L4_CV L4_INLINE int l4rm_area_attach | ( | const l4dm_dataspace_t * | ds, | |
l4_uint32_t | area, | |||
l4_size_t | size, | |||
l4_offs_t | ds_offs, | |||
l4_uint32_t | flags, | |||
void ** | addr | |||
) |
Attach dataspace to area.
ds | Dataspace id | |
area | Area id | |
size | Size | |
ds_offs | Offset in dataspace | |
flags | Flags:
|
addr | Start address |
L4_CV L4_INLINE int l4rm_area_attach_to_region | ( | const l4dm_dataspace_t * | ds, | |
l4_uint32_t | area, | |||
const void * | addr, | |||
l4_size_t | size, | |||
l4_offs_t | ds_offs, | |||
l4_uint32_t | flags | |||
) |
Attach dataspace to specified region in area.
ds | Dataspace id | |
area | Area id | |
addr | Start address, must be page aligned | |
size | Size | |
ds_offs | Offset in dataspace | |
flags | Flags:
|
L4_CV int l4rm_detach | ( | const void * | addr | ) |
Detach dataspace.
addr | Address of VM area |