Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _ASM_POWERPC_MSGBUF_H
0003 #define _ASM_POWERPC_MSGBUF_H
0004 
0005 #include <asm/ipcbuf.h>
0006 
0007 /*
0008  * The msqid64_ds structure for the PowerPC architecture.
0009  * Note extra padding because this structure is passed back and forth
0010  * between kernel and user space.
0011  */
0012 
0013 struct msqid64_ds {
0014     struct ipc64_perm msg_perm;
0015 #ifdef __powerpc64__
0016     long         msg_stime; /* last msgsnd time */
0017     long         msg_rtime; /* last msgrcv time */
0018     long         msg_ctime; /* last change time */
0019 #else
0020     unsigned long  msg_stime_high;
0021     unsigned long  msg_stime;   /* last msgsnd time */
0022     unsigned long  msg_rtime_high;
0023     unsigned long  msg_rtime;   /* last msgrcv time */
0024     unsigned long  msg_ctime_high;
0025     unsigned long  msg_ctime;   /* last change time */
0026 #endif
0027     unsigned long  msg_cbytes;  /* current number of bytes on queue */
0028     unsigned long  msg_qnum;    /* number of messages in queue */
0029     unsigned long  msg_qbytes;  /* max number of bytes on queue */
0030     __kernel_pid_t msg_lspid;   /* pid of last msgsnd */
0031     __kernel_pid_t msg_lrpid;   /* last receive pid */
0032     unsigned long  __unused4;
0033     unsigned long  __unused5;
0034 };
0035 
0036 #endif  /* _ASM_POWERPC_MSGBUF_H */