Документ взят из кэша поисковой машины. Адрес оригинального документа : http://itpm.msu.su/LDP/lpg-0.4/node31.html
Дата изменения: Sun Apr 18 13:36:58 1999
Дата индексирования: Mon Oct 1 21:10:41 2012
Кодировка:
Kernel msg structure next up previous contents
Next: Kernel msqid_ds structure Up: Internal and User Data Previous: Message buffer

Kernel msg structure

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 */
};

msg_next

This is a pointer to the next message in the queue. They are stored as a singly linked list within kernel addressing space.

msg_type

This is the message type, as assigned in the user structure msgbuf.

msg_spot

A pointer to the beginning of the message body.

msg_ts

The length of the message text, or body.



Converted on:
Fri Mar 29 14:43:04 EST 1996