msqid_ds Struct Reference

#include <stdapis/sys/msg.h>

struct msqid_ds

Detailed Description

The msqid_ds structure defines a message queue associated with a message queue ID. There is one queue per message queue ID. Collectively, the queues are stored as an array, with message queue IDs serving as an index into the array. Contains the following members,

Member Attribute Documentation

msg_cbytes

msglen_t msg_cbytes

number of bytes in use on the queue

msg_ctime

time_t msg_ctime

time of last msgctl()

msg_first

struct msg *msg_first

first message in the queue

msg_last

struct msg *msg_last

last message in the queue

msg_lrpid

pid_t msg_lrpid

pid of last msgrcv()

msg_lspid

pid_t msg_lspid

pid of last msgsnd()

msg_pad1

longmsg_pad1

time of last msgsnd()

msg_pad2

longmsg_pad2

time of last msgrcv()

msg_pad3

longmsg_pad3

time of last msgctl()

msg_pad4

longmsg_pad4

time of last msgctl()

msg_perm

struct ipc_permmsg_perm

msg queue permission bits

msg_qbytes

msglen_t msg_qbytes

max n of bytes on the queue

msg_qnum

msgqnum_t msg_qnum

number of msgs in the queue

msg_rtime

time_t msg_rtime

time of last msgrcv()

msg_stime

time_t msg_stime

time of last msgsnd()