12.5 Status-only responses
int ;
The workhorse. Use it for:
- status-only ops on success — pass
status = RSI_OK; and - any op reporting a non-OK status — a
LOOKUPthat found nothing, aSET_VALUEthat failed a compare-and-swap, a permission error: reply with the appropriateRSI_*status here, whatever the op.
It fails with EINVAL on a bad req, an unknown status, or RSI_OK given for a payload-bearing op (those must use their own helper on success), plus EIO / the write error.
The rule of thumb: on failure, always rsi_respond_status; on success, rsi_respond_status unless the op is one of the five below.