xref: /openbmc/linux/arch/s390/include/uapi/asm/ipcbuf.h (revision d2574c33)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __S390_IPCBUF_H__
3 #define __S390_IPCBUF_H__
4 
5 /*
6  * The user_ipc_perm structure for S/390 architecture.
7  * Note extra padding because this structure is passed back and forth
8  * between kernel and user space.
9  *
10  * Pad space is left for:
11  * - 32-bit mode_t and seq
12  * - 2 miscellaneous 32-bit values
13  */
14 
15 struct ipc64_perm
16 {
17 	__kernel_key_t		key;
18 	__kernel_uid32_t	uid;
19 	__kernel_gid32_t	gid;
20 	__kernel_uid32_t	cuid;
21 	__kernel_gid32_t	cgid;
22 	__kernel_mode_t		mode;
23 	unsigned short		__pad1;
24 	unsigned short		seq;
25 #ifndef __s390x__
26 	unsigned short		__pad2;
27 #endif /* ! __s390x__ */
28 	unsigned long		__unused1;
29 	unsigned long		__unused2;
30 };
31 
32 #endif /* __S390_IPCBUF_H__ */
33