1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2*4882a593Smuzhiyun #ifndef __ASM_X64_MSGBUF_H 3*4882a593Smuzhiyun #define __ASM_X64_MSGBUF_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #if !defined(__x86_64__) || !defined(__ILP32__) 6*4882a593Smuzhiyun #include <asm-generic/msgbuf.h> 7*4882a593Smuzhiyun #else 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun #include <asm/ipcbuf.h> 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun /* 12*4882a593Smuzhiyun * The msqid64_ds structure for x86 architecture with x32 ABI. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * On x86-32 and x86-64 we can just use the generic definition, but 15*4882a593Smuzhiyun * x32 uses the same binary layout as x86_64, which is differnet 16*4882a593Smuzhiyun * from other 32-bit architectures. 17*4882a593Smuzhiyun */ 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun struct msqid64_ds { 20*4882a593Smuzhiyun struct ipc64_perm msg_perm; 21*4882a593Smuzhiyun __kernel_long_t msg_stime; /* last msgsnd time */ 22*4882a593Smuzhiyun __kernel_long_t msg_rtime; /* last msgrcv time */ 23*4882a593Smuzhiyun __kernel_long_t msg_ctime; /* last change time */ 24*4882a593Smuzhiyun __kernel_ulong_t msg_cbytes; /* current number of bytes on queue */ 25*4882a593Smuzhiyun __kernel_ulong_t msg_qnum; /* number of messages in queue */ 26*4882a593Smuzhiyun __kernel_ulong_t msg_qbytes; /* max number of bytes on queue */ 27*4882a593Smuzhiyun __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 28*4882a593Smuzhiyun __kernel_pid_t msg_lrpid; /* last receive pid */ 29*4882a593Smuzhiyun __kernel_ulong_t __unused4; 30*4882a593Smuzhiyun __kernel_ulong_t __unused5; 31*4882a593Smuzhiyun }; 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun #endif 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun #endif /* __ASM_GENERIC_MSGBUF_H */ 36