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