|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://itpm.msu.su/LDP/lpg-0.4/node31.html
Дата изменения: Sun Apr 18 13:36:58 1999 Дата индексирования: Mon Oct 1 21:10:41 2012 Кодировка: |
The kernel stores each message in the queue within the framework of the msg structure. It is defined for us in linux/msg.h as follows:
/* one msg structure for each message */
struct msg {
struct msg *msg_next; /* next message on queue */
long msg_type;
char *msg_spot; /* message text address */
short msg_ts; /* message text size */
};
This is a pointer to the next message in the queue. They are stored as a singly linked list within kernel addressing space.
This is the message type, as assigned in the user structure msgbuf.
A pointer to the beginning of the message body.
The length of the message text, or body.