call

Number0x12
Signature(port, w1, w2, w3) -> r0–r3 reply
Groupmessaging
Since1.0
Blockingtrue

Atomic send-then-receive: deliver a message and block for the reply on the same port. This is the request/response fast path, cheaper than a separate send + recv.

Pitfalls

Deadlock is possible if the server is waiting for a message from the caller. Design your protocol to avoid circular waits, as zuzu by itself provides minimal deadlock detection to userspace.

Arguments

RegisterNameDescription
r0portHandle of the server port
r1–r3w1–w3Request payload words

Returns

r0–r3 = the reply words.

Errors

CodeCondition
ERR_BADHANDLEHandle names no live port
ERR_BADTYPEHandle is not a port
ERR_DEADThe peer is gone

See also