Structure that describes a pulse
#include <sys/neutrino.h> struct _pulse { uint16_t type; uint16_t subtype; int8_t code; uint8_t zero[3]; union sigval value; int32_t scoid; };
The _pulse structure describes a pulse, a fixed-size, nonblocking message that carries a small payload (four bytes of data plus a single byte code). The members include:
The codes that the OS reserves, and the values sent with the pulse, include the following:
code | value |
---|---|
_PULSE_CODE_COIDDEATH | The connection ID of a connection that was attached to a destroyed channel |
_PULSE_CODE_DISCONNECT | No value defined |
_PULSE_CODE_NET_ACK, _PULSE_CODE_NET_UNBLOCK, and _PULSE_CODE_NET_DETACH (reserved for the io-pkt* resource manager) | |
_PULSE_CODE_RESTART | The cookie passed to MsgPause() that identifies the message that was paused |
_PULSE_CODE_THREADDEATH | The thread ID of the thread that died |
_PULSE_CODE_UNBLOCK | The receive ID (rcvid) associated with the blocking message |
For more details, see ChannelCreate().