xref: /openbmc/linux/arch/sparc/include/uapi/asm/ipcbuf.h (revision feac8c8b)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __SPARC_IPCBUF_H
3 #define __SPARC_IPCBUF_H
4 
5 /*
6  * The ipc64_perm structure for sparc/sparc64 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 seq
12  * - on sparc for 32 bit mode (it is 32 bit on sparc64)
13  * - 2 miscellaneous 64-bit values
14  */
15 
16 struct ipc64_perm
17 {
18 	__kernel_key_t	key;
19 	__kernel_uid_t	uid;
20 	__kernel_gid_t	gid;
21 	__kernel_uid_t	cuid;
22 	__kernel_gid_t	cgid;
23 #ifndef __arch64__
24 	unsigned short	__pad0;
25 #endif
26 	__kernel_mode_t	mode;
27 	unsigned short	__pad1;
28 	unsigned short	seq;
29 	unsigned long long __unused1;
30 	unsigned long long __unused2;
31 };
32 
33 #endif /* __SPARC_IPCBUF_H */
34