HandleClose¶
Closes a handle.
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x08 SVC_MANAGEHANDLE |
MNGHNDL_CLOSE (2) |
no | 2.0 |
Err HandleClose(Handle h);
Registers: (h) -> r0 status
The object lives on while other handles or mappings refer to it; closing the last handle to a port kills the port, failing its waiting callers with ERR_DEAD.
Parameters¶
| Name | Direction | Description |
|---|---|---|
h |
in | Handle to close. |
Returns¶
ZUZU_OK, or an error code.
Errors¶
| Error | Condition |
|---|---|
ERR_BADHANDLE |
h is not a live handle. |
ERR_BADARG |
h names the caller's own space or one of its ancestors. |