xref: /OK3568_Linux_fs/kernel/arch/xtensa/include/uapi/asm/ipcbuf.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * include/asm-xtensa/ipcbuf.h
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * The ipc64_perm structure for the Xtensa architecture.
6*4882a593Smuzhiyun  * Note extra padding because this structure is passed back and forth
7*4882a593Smuzhiyun  * between kernel and user space.
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * Copyright (C) 2001 - 2005 Tensilica Inc.
10*4882a593Smuzhiyun  */
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #ifndef _XTENSA_IPCBUF_H
13*4882a593Smuzhiyun #define _XTENSA_IPCBUF_H
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #include <linux/posix_types.h>
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun /*
18*4882a593Smuzhiyun  * Pad space is left for:
19*4882a593Smuzhiyun  * - 32-bit mode_t and seq
20*4882a593Smuzhiyun  * - 2 miscellaneous 32-bit values
21*4882a593Smuzhiyun  *
22*4882a593Smuzhiyun  * This file is subject to the terms and conditions of the GNU General
23*4882a593Smuzhiyun  * Public License.  See the file "COPYING" in the main directory of
24*4882a593Smuzhiyun  * this archive for more details.
25*4882a593Smuzhiyun  */
26*4882a593Smuzhiyun 
27*4882a593Smuzhiyun struct ipc64_perm
28*4882a593Smuzhiyun {
29*4882a593Smuzhiyun 	__kernel_key_t		key;
30*4882a593Smuzhiyun 	__kernel_uid32_t	uid;
31*4882a593Smuzhiyun 	__kernel_gid32_t	gid;
32*4882a593Smuzhiyun 	__kernel_uid32_t	cuid;
33*4882a593Smuzhiyun 	__kernel_gid32_t	cgid;
34*4882a593Smuzhiyun 	__kernel_mode_t		mode;
35*4882a593Smuzhiyun 	unsigned long		seq;
36*4882a593Smuzhiyun 	unsigned long		__unused1;
37*4882a593Smuzhiyun 	unsigned long		__unused2;
38*4882a593Smuzhiyun };
39*4882a593Smuzhiyun 
40*4882a593Smuzhiyun #endif /* _XTENSA_IPCBUF_H */
41