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; 13*d0b67de9SArnd Bergmann #ifdef __powerpc64__ 14c3617f72SDavid Howells __kernel_time_t msg_stime; /* last msgsnd time */ 15c3617f72SDavid Howells __kernel_time_t msg_rtime; /* last msgrcv time */ 16c3617f72SDavid Howells __kernel_time_t msg_ctime; /* last change time */ 17*d0b67de9SArnd Bergmann #else 18*d0b67de9SArnd Bergmann unsigned long msg_stime_high; 19*d0b67de9SArnd Bergmann unsigned long msg_stime; /* last msgsnd time */ 20*d0b67de9SArnd Bergmann unsigned long msg_rtime_high; 21*d0b67de9SArnd Bergmann unsigned long msg_rtime; /* last msgrcv time */ 22*d0b67de9SArnd Bergmann unsigned long msg_ctime_high; 23*d0b67de9SArnd Bergmann unsigned long msg_ctime; /* last change time */ 24*d0b67de9SArnd 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