shm_create
| Number | 0x32 |
|---|---|
| Signature | (size) -> handle or -err |
| Group | memory |
| Since | 1.0 |
Create a shared-memory object and receive a handle to it. Map it with memmap; hand it to a peer with grant.
Arguments
| Register | Name | Description |
|---|---|---|
r0 | size | Size of the shared region |
Returns
A shared-memory handle.
Errors
| Code | Condition |
|---|---|
ERR_BADARG | For a bad size |
ERR_NOMEM | If frames or a handle slot cannot be allocated |