shm_create

Number0x32
Signature(size) -> handle or -err
Groupmemory
Since1.0

Create a shared-memory object and receive a handle to it. Map it with memmap; hand it to a peer with grant.

Arguments

RegisterNameDescription
r0sizeSize of the shared region

Returns

A shared-memory handle.

Errors

CodeCondition
ERR_BADARGFor a bad size
ERR_NOMEMIf frames or a handle slot cannot be allocated

See also