xref: /linux-6.15/arch/parisc/include/uapi/asm/msgbuf.h (revision 9ef0e004)
16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
270c1674fSDavid Howells #ifndef _PARISC_MSGBUF_H
370c1674fSDavid Howells #define _PARISC_MSGBUF_H
470c1674fSDavid Howells 
5d8f5457aSHelge Deller #include <asm/bitsperlong.h>
6*9ef0e004SMasahiro Yamada #include <asm/ipcbuf.h>
7d8f5457aSHelge Deller 
870c1674fSDavid Howells /*
970c1674fSDavid Howells  * The msqid64_ds structure for parisc architecture, copied from sparc.
1070c1674fSDavid Howells  * Note extra padding because this structure is passed back and forth
1170c1674fSDavid Howells  * between kernel and user space.
1270c1674fSDavid Howells  *
1370c1674fSDavid Howells  * Pad space is left for:
1470c1674fSDavid Howells  * - 2 miscellaneous 32-bit values
1570c1674fSDavid Howells  */
1670c1674fSDavid Howells 
1770c1674fSDavid Howells struct msqid64_ds {
1870c1674fSDavid Howells 	struct ipc64_perm msg_perm;
19f69c97f6SArnd Bergmann #if __BITS_PER_LONG == 64
20caf5e32dSArnd Bergmann 	long		 msg_stime;	/* last msgsnd time */
21caf5e32dSArnd Bergmann 	long		 msg_rtime;	/* last msgrcv time */
22caf5e32dSArnd Bergmann 	long		 msg_ctime;	/* last change time */
23f69c97f6SArnd Bergmann #else
24f69c97f6SArnd Bergmann 	unsigned long	msg_stime_high;
25f69c97f6SArnd Bergmann 	unsigned long	msg_stime;	/* last msgsnd time */
26f69c97f6SArnd Bergmann 	unsigned long	msg_rtime_high;
27f69c97f6SArnd Bergmann 	unsigned long	msg_rtime;	/* last msgrcv time */
28f69c97f6SArnd Bergmann 	unsigned long	msg_ctime_high;
29f69c97f6SArnd Bergmann 	unsigned long	msg_ctime;	/* last change time */
30f69c97f6SArnd Bergmann #endif
31d0cf62fbSHelge Deller 	unsigned long	msg_cbytes;	/* current number of bytes on queue */
32d0cf62fbSHelge Deller 	unsigned long	msg_qnum;	/* number of messages in queue */
33d0cf62fbSHelge Deller 	unsigned long	msg_qbytes;	/* max number of bytes on queue */
3470c1674fSDavid Howells 	__kernel_pid_t	msg_lspid;	/* pid of last msgsnd */
3570c1674fSDavid Howells 	__kernel_pid_t	msg_lrpid;	/* last receive pid */
36d0cf62fbSHelge Deller 	unsigned long	__unused1;
37d0cf62fbSHelge Deller 	unsigned long	__unused2;
3870c1674fSDavid Howells };
3970c1674fSDavid Howells 
4070c1674fSDavid Howells #endif /* _PARISC_MSGBUF_H */
41