Skip to main content

Module chan

Module chan 

Source
Expand description

Typed MPMC sync-channel syscall handlers.

Provides bounded multi-producer, multi-consumer channels for inter-process message passing (IPC-02).

Constants§

MSG_SIZE 🔒

Functions§

sys_chan_close
SYS_CHAN_CLOSE (224): destroy a channel and wake all waiters.
sys_chan_create
SYS_CHAN_CREATE (220): create a bounded sync-channel.
sys_chan_recv
SYS_CHAN_RECV (222): receive one IpcMessage, blocking if empty.
sys_chan_send
SYS_CHAN_SEND (221): send one IpcMessage to a channel, blocking if full.
sys_chan_try_recv
SYS_CHAN_TRY_RECV (223): non-blocking receive.