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 5*9ef0e004SMasahiro Yamada #include <asm/ipcbuf.h> 6*9ef0e004SMasahiro Yamada 7c3617f72SDavid Howells /* 8c3617f72SDavid Howells * The msqid64_ds structure for the PowerPC architecture. 9c3617f72SDavid Howells * Note extra padding because this structure is passed back and forth 10c3617f72SDavid Howells * between kernel and user space. 11c3617f72SDavid Howells */ 12c3617f72SDavid Howells 13c3617f72SDavid Howells struct msqid64_ds { 14c3617f72SDavid Howells struct ipc64_perm msg_perm; 15d0b67de9SArnd Bergmann #ifdef __powerpc64__ 16caf5e32dSArnd Bergmann long msg_stime; /* last msgsnd time */ 17caf5e32dSArnd Bergmann long msg_rtime; /* last msgrcv time */ 18caf5e32dSArnd Bergmann long msg_ctime; /* last change time */ 19d0b67de9SArnd Bergmann #else 20d0b67de9SArnd Bergmann unsigned long msg_stime_high; 21d0b67de9SArnd Bergmann unsigned long msg_stime; /* last msgsnd time */ 22d0b67de9SArnd Bergmann unsigned long msg_rtime_high; 23d0b67de9SArnd Bergmann unsigned long msg_rtime; /* last msgrcv time */ 24d0b67de9SArnd Bergmann unsigned long msg_ctime_high; 25d0b67de9SArnd Bergmann unsigned long msg_ctime; /* last change time */ 26d0b67de9SArnd Bergmann #endif 27c3617f72SDavid Howells unsigned long msg_cbytes; /* current number of bytes on queue */ 28c3617f72SDavid Howells unsigned long msg_qnum; /* number of messages in queue */ 29c3617f72SDavid Howells unsigned long msg_qbytes; /* max number of bytes on queue */ 30c3617f72SDavid Howells __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 31c3617f72SDavid Howells __kernel_pid_t msg_lrpid; /* last receive pid */ 32c3617f72SDavid Howells unsigned long __unused4; 33c3617f72SDavid Howells unsigned long __unused5; 34c3617f72SDavid Howells }; 35c3617f72SDavid Howells 36c3617f72SDavid Howells #endif /* _ASM_POWERPC_MSGBUF_H */ 37