Allocate state area.
- Parameters
-
[out] | mem | Pointer to memory that has been allocated. |
| pages_order | Size to allocate, in log2 pages. |
| task | Task to use for allocation. |
| rm | Region manager to use for allocation. |
- Return values
-
0 | for success |
<0 | error code on failure |
- Note
- The amount of kernel-user memory that can be allocated at once is limited by the used kernel implementation. The minimum allocatable amount is one page. A portable implementation should not depend on allocations greater than 16KiB to succeed.
References L4Re::Util::kumem_alloc().
Referenced by L4Re::Util::kumem_alloc().