xref: /OK3568_Linux_fs/kernel/arch/parisc/include/uapi/asm/ipcbuf.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun #ifndef __PARISC_IPCBUF_H__
3*4882a593Smuzhiyun #define __PARISC_IPCBUF_H__
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <asm/bitsperlong.h>
6*4882a593Smuzhiyun #include <linux/posix_types.h>
7*4882a593Smuzhiyun 
8*4882a593Smuzhiyun /*
9*4882a593Smuzhiyun  * The ipc64_perm structure for PA-RISC is almost identical to
10*4882a593Smuzhiyun  * kern_ipc_perm as we have always had 32-bit UIDs and GIDs in the kernel.
11*4882a593Smuzhiyun  * 'seq' has been changed from long to int so that it's the same size
12*4882a593Smuzhiyun  * on 64-bit kernels as on 32-bit ones.
13*4882a593Smuzhiyun  */
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun struct ipc64_perm
16*4882a593Smuzhiyun {
17*4882a593Smuzhiyun 	__kernel_key_t		key;
18*4882a593Smuzhiyun 	__kernel_uid_t		uid;
19*4882a593Smuzhiyun 	__kernel_gid_t		gid;
20*4882a593Smuzhiyun 	__kernel_uid_t		cuid;
21*4882a593Smuzhiyun 	__kernel_gid_t		cgid;
22*4882a593Smuzhiyun #if __BITS_PER_LONG != 64
23*4882a593Smuzhiyun 	unsigned short int	__pad1;
24*4882a593Smuzhiyun #endif
25*4882a593Smuzhiyun 	__kernel_mode_t		mode;
26*4882a593Smuzhiyun 	unsigned short int	__pad2;
27*4882a593Smuzhiyun 	unsigned short int	seq;
28*4882a593Smuzhiyun 	unsigned int		__pad3;
29*4882a593Smuzhiyun 	unsigned long long int __unused1;
30*4882a593Smuzhiyun 	unsigned long long int __unused2;
31*4882a593Smuzhiyun };
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #endif /* __PARISC_IPCBUF_H__ */
34