SetLabel

Number0x28
Signature(handle, marker) -> stamped_handle or -err
Grouphandles
Since1.1.1

Add a 32-bit label value to a process. Used for distinguishing at name server level.

Pitfalls

Only the init process may call this. Only an unlabeled process can get labelled.

Arguments

RegisterNameDescription
r0handleProcess to label
r1labelThe value to label the process with. Must be nonzero; 0 (`LABEL_NONE`) is the reserved sentinel

Returns

ZUZU_OK on success

Errors

CodeCondition
ERR_BADARGlabel is `LABEL_NONE` (0)
ERR_BADHANDLEhandle names no live entry
ERR_BADTYPEhandle is not a port
ERR_BUSYProcess is not FROZEN
ERR_DUPLICATEprocess already has label
ERR_NOMEMCaller's handle table is full

See also