xref: /OK3568_Linux_fs/kernel/arch/powerpc/include/uapi/asm/ipcbuf.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2*4882a593Smuzhiyun #ifndef _ASM_POWERPC_IPCBUF_H
3*4882a593Smuzhiyun #define _ASM_POWERPC_IPCBUF_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun /*
6*4882a593Smuzhiyun  * The ipc64_perm structure for the powerpc is identical to
7*4882a593Smuzhiyun  * kern_ipc_perm as we have always had 32-bit UIDs and GIDs in the
8*4882a593Smuzhiyun  * kernel.  Note extra padding because this structure is passed back
9*4882a593Smuzhiyun  * and forth between kernel and user space.  Pad space is left for:
10*4882a593Smuzhiyun  *	- 1 32-bit value to fill up for 8-byte alignment
11*4882a593Smuzhiyun  *	- 2 miscellaneous 64-bit values
12*4882a593Smuzhiyun  *
13*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or
14*4882a593Smuzhiyun  * modify it under the terms of the GNU General Public License
15*4882a593Smuzhiyun  * as published by the Free Software Foundation; either version
16*4882a593Smuzhiyun  * 2 of the License, or (at your option) any later version.
17*4882a593Smuzhiyun  */
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #include <linux/types.h>
20*4882a593Smuzhiyun 
21*4882a593Smuzhiyun struct ipc64_perm
22*4882a593Smuzhiyun {
23*4882a593Smuzhiyun 	__kernel_key_t	key;
24*4882a593Smuzhiyun 	__kernel_uid_t	uid;
25*4882a593Smuzhiyun 	__kernel_gid_t	gid;
26*4882a593Smuzhiyun 	__kernel_uid_t	cuid;
27*4882a593Smuzhiyun 	__kernel_gid_t	cgid;
28*4882a593Smuzhiyun 	__kernel_mode_t	mode;
29*4882a593Smuzhiyun 	unsigned int	seq;
30*4882a593Smuzhiyun 	unsigned int	__pad1;
31*4882a593Smuzhiyun 	unsigned long long __unused1;
32*4882a593Smuzhiyun 	unsigned long long __unused2;
33*4882a593Smuzhiyun };
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun #endif /* _ASM_POWERPC_IPCBUF_H */
36