xref: /openbmc/linux/arch/powerpc/include/uapi/asm/msgbuf.h (revision caf5e32d4ea7253820f38dd7c429f8d4a8019c5f)
16f52b16cSGreg 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;
13d0b67de9SArnd Bergmann #ifdef __powerpc64__
14*caf5e32dSArnd Bergmann 	long		 msg_stime;	/* last msgsnd time */
15*caf5e32dSArnd Bergmann 	long		 msg_rtime;	/* last msgrcv time */
16*caf5e32dSArnd Bergmann 	long		 msg_ctime;	/* last change time */
17d0b67de9SArnd Bergmann #else
18d0b67de9SArnd Bergmann 	unsigned long  msg_stime_high;
19d0b67de9SArnd Bergmann 	unsigned long  msg_stime;	/* last msgsnd time */
20d0b67de9SArnd Bergmann 	unsigned long  msg_rtime_high;
21d0b67de9SArnd Bergmann 	unsigned long  msg_rtime;	/* last msgrcv time */
22d0b67de9SArnd Bergmann 	unsigned long  msg_ctime_high;
23d0b67de9SArnd Bergmann 	unsigned long  msg_ctime;	/* last change time */
24d0b67de9SArnd Bergmann #endif
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