Skip to content

Reply

Answers the call the caller is holding.

Number Selector Blocking Since
0x06 SVC_REPLY — no 2.0
Err Reply(uint32_t xlen, Handle grant_handle);

Registers: (xlen, grant, -1, 0) -> r0 status

The reply is the first xlen bytes of the server's message box. If the caller's CallTimeout() expired after the call was received, the call has been withdrawn and there is nothing to answer.

Parameters

Name Direction Description
xlen in Reply length in bytes, at most MSG_BUF_SIZE.
grant_handle in Handle (with PERM_TXFR) to copy to the caller, or -1.

Returns

ZUZU_OK, or an error code.

Errors

Error Condition
ERR_OVERFLOW xlen is larger than MSG_BUF_SIZE.
ERR_DEAD The caller has died.
ERR_BADHANDLE There is no call to answer (none was received, or the caller timed out and withdrew it), or grant_handle is not live.
ERR_NOPERM grant_handle lacks PERM_TXFR; the caller is failed with this error.
ERR_NOMEM The caller's handle table is full; the caller is failed with this error.