ReplyTo¶
Answers a call parked with Hold().
| Number | Selector | Blocking | Since |
|---|---|---|---|
0x06 SVC_REPLY |
(ticket in r3) |
no | 2.0 |
Err ReplyTo(Ticket t, uint32_t xlen, Handle grant);
Registers: (xlen, grant, -1, ticket) -> r0 status
The reply is the first xlen bytes of the answering thread's message box. Any thread of the space that parked the call may answer; a ticket answers once and is meaningless in other spaces. The call in hand, if any, is not affected.
Parameters¶
| Name | Direction | Description |
|---|---|---|
t |
in | Ticket from Hold(). |
xlen |
in | Reply length in bytes, at most MSG_BUF_SIZE. |
grant |
in | Handle (with PERM_TXFR) to copy to the caller, or -1. |
Returns¶
ZUZU_OK, or an error code.
Errors¶
| Error | Condition |
|---|---|
ERR_NOENT |
Unknown, already answered or forged ticket, or the caller has died. |
ERR_BADHANDLE |
The handle the call was received through has been closed. |
ERR_NOPERM |
That handle lacks PERM_WAIT, or grant lacks PERM_TXFR. |
ERR_OVERFLOW |
xlen is larger than MSG_BUF_SIZE. |