xref: /openbmc/linux/arch/powerpc/include/uapi/asm/msgbuf.h (revision 6f52b16c5b29b89d92c0e7236f4655dc8491ad70)
1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2c3617f72SDavid Howells #ifndef _ASM_POWERPC_MSGBUF_H
3c3617f72SDavid Howells #define _ASM_POWERPC_MSGBUF_H
4c3617f72SDavid Howells 
5c3617f72SDavid Howells /*
6c3617f72SDavid Howells  * The msqid64_ds structure for the PowerPC architecture.
7c3617f72SDavid Howells  * Note extra padding because this structure is passed back and forth
8c3617f72SDavid Howells  * between kernel and user space.
9c3617f72SDavid Howells  */
10c3617f72SDavid Howells 
11c3617f72SDavid Howells struct msqid64_ds {
12c3617f72SDavid Howells 	struct ipc64_perm msg_perm;
13c3617f72SDavid Howells #ifndef __powerpc64__
14c3617f72SDavid Howells 	unsigned int	__unused1;
15c3617f72SDavid Howells #endif
16c3617f72SDavid Howells 	__kernel_time_t msg_stime;	/* last msgsnd time */
17c3617f72SDavid Howells #ifndef __powerpc64__
18c3617f72SDavid Howells 	unsigned int	__unused2;
19c3617f72SDavid Howells #endif
20c3617f72SDavid Howells 	__kernel_time_t msg_rtime;	/* last msgrcv time */
21c3617f72SDavid Howells #ifndef __powerpc64__
22c3617f72SDavid Howells 	unsigned int	__unused3;
23c3617f72SDavid Howells #endif
24c3617f72SDavid Howells 	__kernel_time_t msg_ctime;	/* last change time */
25c3617f72SDavid Howells 	unsigned long  msg_cbytes;	/* current number of bytes on queue */
26c3617f72SDavid Howells 	unsigned long  msg_qnum;	/* number of messages in queue */
27c3617f72SDavid Howells 	unsigned long  msg_qbytes;	/* max number of bytes on queue */
28c3617f72SDavid Howells 	__kernel_pid_t msg_lspid;	/* pid of last msgsnd */
29c3617f72SDavid Howells 	__kernel_pid_t msg_lrpid;	/* last receive pid */
30c3617f72SDavid Howells 	unsigned long  __unused4;
31c3617f72SDavid Howells 	unsigned long  __unused5;
32c3617f72SDavid Howells };
33c3617f72SDavid Howells 
34c3617f72SDavid Howells #endif	/* _ASM_POWERPC_MSGBUF_H */
35