xref: /OK3568_Linux_fs/kernel/arch/parisc/include/uapi/asm/msgbuf.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun #ifndef _PARISC_MSGBUF_H
3*4882a593Smuzhiyun #define _PARISC_MSGBUF_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <asm/bitsperlong.h>
6*4882a593Smuzhiyun #include <asm/ipcbuf.h>
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun /*
9*4882a593Smuzhiyun  * The msqid64_ds structure for parisc architecture, copied from sparc.
10*4882a593Smuzhiyun  * Note extra padding because this structure is passed back and forth
11*4882a593Smuzhiyun  * between kernel and user space.
12*4882a593Smuzhiyun  *
13*4882a593Smuzhiyun  * Pad space is left for:
14*4882a593Smuzhiyun  * - 2 miscellaneous 32-bit values
15*4882a593Smuzhiyun  */
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun struct msqid64_ds {
18*4882a593Smuzhiyun 	struct ipc64_perm msg_perm;
19*4882a593Smuzhiyun #if __BITS_PER_LONG == 64
20*4882a593Smuzhiyun 	long		 msg_stime;	/* last msgsnd time */
21*4882a593Smuzhiyun 	long		 msg_rtime;	/* last msgrcv time */
22*4882a593Smuzhiyun 	long		 msg_ctime;	/* last change time */
23*4882a593Smuzhiyun #else
24*4882a593Smuzhiyun 	unsigned long	msg_stime_high;
25*4882a593Smuzhiyun 	unsigned long	msg_stime;	/* last msgsnd time */
26*4882a593Smuzhiyun 	unsigned long	msg_rtime_high;
27*4882a593Smuzhiyun 	unsigned long	msg_rtime;	/* last msgrcv time */
28*4882a593Smuzhiyun 	unsigned long	msg_ctime_high;
29*4882a593Smuzhiyun 	unsigned long	msg_ctime;	/* last change time */
30*4882a593Smuzhiyun #endif
31*4882a593Smuzhiyun 	unsigned long	msg_cbytes;	/* current number of bytes on queue */
32*4882a593Smuzhiyun 	unsigned long	msg_qnum;	/* number of messages in queue */
33*4882a593Smuzhiyun 	unsigned long	msg_qbytes;	/* max number of bytes on queue */
34*4882a593Smuzhiyun 	__kernel_pid_t	msg_lspid;	/* pid of last msgsnd */
35*4882a593Smuzhiyun 	__kernel_pid_t	msg_lrpid;	/* last receive pid */
36*4882a593Smuzhiyun 	unsigned long	__unused1;
37*4882a593Smuzhiyun 	unsigned long	__unused2;
38*4882a593Smuzhiyun };
39*4882a593Smuzhiyun 
40*4882a593Smuzhiyun #endif /* _PARISC_MSGBUF_H */
41