16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 254579826SDavid Howells #ifndef _SPARC_MSGBUF_H 354579826SDavid Howells #define _SPARC_MSGBUF_H 454579826SDavid Howells 59ef0e004SMasahiro Yamada #include <asm/ipcbuf.h> 69ef0e004SMasahiro Yamada 754579826SDavid Howells /* 854579826SDavid Howells * The msqid64_ds structure for sparc64 architecture. 954579826SDavid Howells * Note extra padding because this structure is passed back and forth 1054579826SDavid Howells * between kernel and user space. 1154579826SDavid Howells * 1254579826SDavid Howells * Pad space is left for: 1354579826SDavid Howells * - 2 miscellaneous 32-bit values 1454579826SDavid Howells */ 1554579826SDavid Howells struct msqid64_ds { 1654579826SDavid Howells struct ipc64_perm msg_perm; 1791b9b0d7SArnd Bergmann #if defined(__sparc__) && defined(__arch64__) 18caf5e32dSArnd Bergmann long msg_stime; /* last msgsnd time */ 19caf5e32dSArnd Bergmann long msg_rtime; /* last msgrcv time */ 20caf5e32dSArnd Bergmann long msg_ctime; /* last change time */ 2191b9b0d7SArnd Bergmann #else 2291b9b0d7SArnd Bergmann unsigned long msg_stime_high; 2391b9b0d7SArnd Bergmann unsigned long msg_stime; /* last msgsnd time */ 2491b9b0d7SArnd Bergmann unsigned long msg_rtime_high; 2591b9b0d7SArnd Bergmann unsigned long msg_rtime; /* last msgrcv time */ 2691b9b0d7SArnd Bergmann unsigned long msg_ctime_high; 2791b9b0d7SArnd Bergmann unsigned long msg_ctime; /* last change time */ 2891b9b0d7SArnd Bergmann #endif 2954579826SDavid Howells unsigned long msg_cbytes; /* current number of bytes on queue */ 3054579826SDavid Howells unsigned long msg_qnum; /* number of messages in queue */ 3154579826SDavid Howells unsigned long msg_qbytes; /* max number of bytes on queue */ 3254579826SDavid Howells __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 3354579826SDavid Howells __kernel_pid_t msg_lrpid; /* last receive pid */ 3454579826SDavid Howells unsigned long __unused1; 3554579826SDavid Howells unsigned long __unused2; 3654579826SDavid Howells }; 3754579826SDavid Howells #endif /* _SPARC_MSGBUF_H */ 38