Updated: April 19, 2023 |
Information about a message
#include <sys/neutrino.h> struct _msg_info32 { /* _msg_info _server_info */ uint32_t nd; /* client server */ uint32_t srcnd; /* server n/a */ pid_t pid; /* client server */ int32_t tid; /* thread n/a */ int32_t chid; /* server server */ int32_t scoid; /* server server */ int32_t coid; /* client client */ ssize32_t msglen; /* msg n/a */ ssize32_t srcmsglen; /* thread n/a */ ssize32_t dstmsglen; /* thread n/a */ int16_t priority; /* thread n/a */ int16_t flags; /* n/a client */ uint32_t type_id; /* client server channel */ }; struct _msg_info64 { /* _msg_info _server_info */ uint32_t nd; /* client server */ uint32_t srcnd; /* server n/a */ pid_t pid; /* client server */ int32_t tid; /* thread n/a */ int32_t chid; /* server server */ int32_t scoid; /* server server */ int32_t coid; /* client client */ int16_t priority; /* thread n/a */ int16_t flags; /* n/a client */ ssize64_t msglen; /* msg n/a */ ssize64_t srcmsglen; /* thread n/a */ ssize64_t dstmsglen; /* thread n/a */ uint32_t type_id; /* client server channel */ uint32_t reserved; }; #if __PTR_BITS__ <= 32 #define _msg_info _msg_info32 #else #define _msg_info _msg_info64 #endif #define _server_info32 _msg_info32 #define _server_info64 _msg_info64 #define _server_info _msg_info
The _msg_info structure contains information about a message. The members include:
If msglen is less than srcmsglen and is also less than the receive buffer size, the message is a network transaction that requires more reading of data with MsgRead*().
Node descriptors
The nd (node descriptor) is a temporary numeric description of a remote node; ND_LOCAL_NODE (or 0) is the descriptor for the local node. For more information, see the Qnet Networking chapter of the System Architecture guide.
To: | Use this function: |
---|---|
Compare two nd objects | ND_NODE_CMP() |
Convert a nd to text | netmgr_ndtostr() |
Convert text to a nd | netmgr_strtond() |