Skip to content

BindMemMgmt

Subscribes an event to the kernel's memory-pressure notifications.

Number Selector Blocking Since
0x0A SVC_BIND EVENT_MEMMGMT (1) no 2.0
Err BindMemMgmt(Handle ev_handle);

Registers: (EVENT_MEMMGMT, event) -> r0 status

Parameters

Name Direction Description
ev_handle in Event handle with PERM_CNTL.

Returns

ZUZU_OK, or an error code.

Errors

Error Condition
ERR_BADHANDLE ev_handle is not a live handle.
ERR_BADTYPE ev_handle is not an event.
ERR_NOPERM ev_handle lacks PERM_CNTL.
ERR_DEAD The event has been destroyed.
ERR_BADARG The event is already subscribed.
ERR_NOMEM No subscription slots left.