Region map C interface. More...
Collaboration diagram for Region map interface:Enumerations | |
| enum | l4re_rm_flags_t { L4RE_RM_READ_ONLY = 0x01, L4RE_RM_NO_ALIAS = 0x02, L4RE_RM_PAGER = 0x04, L4RE_RM_RESERVED = 0x08, L4RE_RM_REGION_FLAGS = 0x0f, L4RE_RM_OVERMAP = 0x10, L4RE_RM_SEARCH_ADDR = 0x20, L4RE_RM_IN_AREA = 0x40, L4RE_RM_EAGER_MAP = 0x80, L4RE_RM_ATTACH_FLAGS = 0xf0 } |
| Flags for region operations. More... | |
Functions | |
| int | l4re_rm_reserve_area (l4_addr_t *start, unsigned long size, unsigned flags, unsigned char align) L4_NOTHROW |
| int | l4re_rm_free_area (l4_addr_t addr) L4_NOTHROW |
| int | l4re_rm_attach (void **start, unsigned long size, unsigned long flags, l4re_ds_t const mem, l4_addr_t offs, unsigned char align) L4_NOTHROW |
| int | l4re_rm_detach (void *addr) L4_NOTHROW |
| Detach and unmap in current task. | |
| int | l4re_rm_detach_ds (void *addr, l4re_ds_t *ds) L4_NOTHROW |
| Detach, unmap and return affected dataspace in current task. | |
| int | l4re_rm_detach_unmap (l4_addr_t addr, l4_cap_idx_t task) L4_NOTHROW |
| Detach and unmap in specified task. | |
| int | l4re_rm_detach_ds_unmap (void *addr, l4re_ds_t *ds, l4_cap_idx_t task) L4_NOTHROW |
| Detach and unmap in specified task. | |
| int | l4re_rm_find (l4_addr_t *addr, unsigned long *size, l4_addr_t *offset, unsigned *flags, l4re_ds_t *m) L4_NOTHROW |
| void | l4re_rm_show_lists (void) L4_NOTHROW |
| Dump region map internal data structures. | |
| int | l4re_rm_reserve_area_srv (l4_cap_idx_t rm, l4_addr_t *start, unsigned long size, unsigned flags, unsigned char align) L4_NOTHROW |
| int | l4re_rm_free_area_srv (l4_cap_idx_t rm, l4_addr_t addr) L4_NOTHROW |
| int | l4re_rm_attach_srv (l4_cap_idx_t rm, void **start, unsigned long size, unsigned long flags, l4re_ds_t const mem, l4_addr_t offs, unsigned char align) L4_NOTHROW |
| int | l4re_rm_detach_srv (l4_cap_idx_t rm, l4_addr_t addr, l4re_ds_t *ds, l4_cap_idx_t task) L4_NOTHROW |
| int | l4re_rm_find_srv (l4_cap_idx_t rm, l4_addr_t *addr, unsigned long *size, l4_addr_t *offset, unsigned *flags, l4re_ds_t *m) L4_NOTHROW |
| void | l4re_rm_show_lists_srv (l4_cap_idx_t rm) L4_NOTHROW |
| Dump region map internal data structures. | |
Region map C interface.
| enum l4re_rm_flags_t |
Flags for region operations.
|
inline |
This function is using the L4::Env::env()->rm() service.
Definition at line 229 of file rm.h.
References l4re_rm_reserve_area_srv(), and l4re_env_t::rm.
Here is the call graph for this function:
|
inline |
This function is using the L4::Env::env()->rm() service.
Definition at line 237 of file rm.h.
References l4re_rm_free_area_srv(), and l4re_env_t::rm.
Here is the call graph for this function:
|
inline |
| start | Virtual start address |
| size | Size of the data space to attach (in bytes) |
| flags | Flags, see Attach_flags and Region_flags |
| mem | Data space |
| offs | Offset into the data space to use |
| align | Alignment of the virtual region, log2-size, default: a page (L4_PAGESHIFT), Only meaningful if the Search_addr flag is used. |
| start | Start of region if Search_addr was used. |
Makes the whole or parts of a data space visible in the virtual memory of the corresponding task. The corresponding region in the virtual address space is backed with the contents of the dataspace.
This function is using the L4::Env::env()->rm() service.
Definition at line 243 of file rm.h.
References l4re_rm_attach_srv(), and l4re_env_t::rm.
Here is the call graph for this function:
|
inline |
Detach and unmap in current task.
| addr | Address of the region to detach. |
Also
This function is using the L4::Env::env()->rm() service.
Definition at line 253 of file rm.h.
References L4_BASE_TASK_CAP, l4re_rm_detach_srv(), and l4re_env_t::rm.
Here is the call graph for this function:
|
inline |
Detach, unmap and return affected dataspace in current task.
| addr | Address of the region to detach. |
| ds | Returns dataspace that is affected. |
Also
This function is using the L4::Env::env()->rm() service.
Definition at line 266 of file rm.h.
References L4_BASE_TASK_CAP, l4re_rm_detach_srv(), and l4re_env_t::rm.
Here is the call graph for this function:
|
inline |
Detach and unmap in specified task.
| addr | Address of the region to detach. |
| task | Task to unmap pages from, specify L4_INVALID_CAP to not unmap |
Also
This function is using the L4::Env::env()->rm() service.
Definition at line 260 of file rm.h.
References l4re_rm_detach_srv(), and l4re_env_t::rm.
Here is the call graph for this function:
|
inline |
Detach and unmap in specified task.
| addr | Address of the region to detach. |
| ds | Returns dataspace that is affected. |
| task | Task to unmap pages from, specify L4_INVALID_CAP to not unmap |
Also
This function is using the L4::Env::env()->rm() service.
Definition at line 273 of file rm.h.
References l4re_rm_detach_srv(), and l4re_env_t::rm.
Here is the call graph for this function:
|
inline |
Definition at line 280 of file rm.h.
References l4re_rm_find_srv(), and l4re_env_t::rm.
Here is the call graph for this function:
|
inline |
Dump region map internal data structures.
This function is using the L4::Env::env()->rm() service.
Definition at line 287 of file rm.h.
References l4re_rm_show_lists_srv(), and l4re_env_t::rm.
Here is the call graph for this function:| int l4re_rm_reserve_area_srv | ( | l4_cap_idx_t | rm, |
| l4_addr_t * | start, | ||
| unsigned long | size, | ||
| unsigned | flags, | ||
| unsigned char | align | ||
| ) |
Referenced by l4re_rm_reserve_area().
Here is the caller graph for this function:| int l4re_rm_free_area_srv | ( | l4_cap_idx_t | rm, |
| l4_addr_t | addr | ||
| ) |
Referenced by l4re_rm_free_area().
Here is the caller graph for this function:| int l4re_rm_attach_srv | ( | l4_cap_idx_t | rm, |
| void ** | start, | ||
| unsigned long | size, | ||
| unsigned long | flags, | ||
| l4re_ds_t const | mem, | ||
| l4_addr_t | offs, | ||
| unsigned char | align | ||
| ) |
Referenced by l4re_rm_attach().
Here is the caller graph for this function:| int l4re_rm_detach_srv | ( | l4_cap_idx_t | rm, |
| l4_addr_t | addr, | ||
| l4re_ds_t * | ds, | ||
| l4_cap_idx_t | task | ||
| ) |
Referenced by l4re_rm_detach(), l4re_rm_detach_ds(), l4re_rm_detach_ds_unmap(), and l4re_rm_detach_unmap().
Here is the caller graph for this function:| int l4re_rm_find_srv | ( | l4_cap_idx_t | rm, |
| l4_addr_t * | addr, | ||
| unsigned long * | size, | ||
| l4_addr_t * | offset, | ||
| unsigned * | flags, | ||
| l4re_ds_t * | m | ||
| ) |