Skip to content

DmaUnmap

Removes a DMA mapping and releases its hold on the memory.

Number Selector Blocking Since
0x0B SVC_MANAGEMEMORY MNGMEM_DMAUNMAP (5) no 2.0
Err DmaUnmap(Handle dev, uint32_t id);

Registers: (dev, id) -> r0 status

Parameters

Name Direction Description
dev in Device handle with PERM_MAP.
id in Mapping id from DmaMap().

Returns

ZUZU_OK, or an error code.

Errors

Error Condition
ERR_NOENT No mapping with that id.
ERR_BADHANDLE dev is not a live handle.
ERR_BADTYPE dev is not a device.
ERR_NOPERM dev lacks PERM_MAP.