xref: /linux/arch/sparc/include/uapi/asm/ipcbuf.h (revision 9a6b55ac)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __SPARC_IPCBUF_H
3 #define __SPARC_IPCBUF_H
4 
5 #include <linux/posix_types.h>
6 
7 /*
8  * The ipc64_perm structure for sparc/sparc64 architecture.
9  * Note extra padding because this structure is passed back and forth
10  * between kernel and user space.
11  *
12  * Pad space is left for:
13  * - 32-bit seq
14  * - on sparc for 32 bit mode (it is 32 bit on sparc64)
15  * - 2 miscellaneous 64-bit values
16  */
17 
18 struct ipc64_perm
19 {
20 	__kernel_key_t	key;
21 	__kernel_uid_t	uid;
22 	__kernel_gid_t	gid;
23 	__kernel_uid_t	cuid;
24 	__kernel_gid_t	cgid;
25 #ifndef __arch64__
26 	unsigned short	__pad0;
27 #endif
28 	__kernel_mode_t	mode;
29 	unsigned short	__pad1;
30 	unsigned short	seq;
31 	unsigned long long __unused1;
32 	unsigned long long __unused2;
33 };
34 
35 #endif /* __SPARC_IPCBUF_H */
36