Skip to content

ReplyRecvPort

ReplyRecv() with the result unpacked.

Library helper

Implemented in zuzu.h on top of the syscalls; it has no syscall number of its own.

PortWaitResult ReplyRecvPort(uint32_t xlen, Handle grant_handle, Handle recv_port, Duration timeout);

Parameters

Name Direction Description
xlen in Reply length in bytes.
grant_handle in Handle to copy to the caller, or -1.
recv_port in Port to receive on, with PERM_WAIT.
timeout in Milliseconds to wait, or TIMEOUT_POLL / TIMEOUT_INFINITE.

Returns

The unpacked result; status as for ReplyRecv().