MemUnmap¶
Removes a mapping made by MemMap() or MemMapAnon().
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x0B SVC_MANAGEMEMORY |
MNGMEM_UNMAP (1) |
no | 2.0 |
Err MemUnmap(void *va);
Registers: (va) -> r0 status
Parameters¶
| Name | Direction | Description |
|---|---|---|
va |
in | Start address of the mapping. |
Returns¶
ZUZU_OK, or an error code.
Errors¶
| Error | Condition |
|---|---|
ERR_NOENT |
No mapping contains va. |
ERR_BADARG |
va is not the start of its mapping. |
ERR_NOPERM |
The mapping is pinned (for example the syspage). |