18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_IPCBUF_H
38c2ecf20Sopenharmony_ci#define _ASM_POWERPC_IPCBUF_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/*
68c2ecf20Sopenharmony_ci * The ipc64_perm structure for the powerpc is identical to
78c2ecf20Sopenharmony_ci * kern_ipc_perm as we have always had 32-bit UIDs and GIDs in the
88c2ecf20Sopenharmony_ci * kernel.  Note extra padding because this structure is passed back
98c2ecf20Sopenharmony_ci * and forth between kernel and user space.  Pad space is left for:
108c2ecf20Sopenharmony_ci *	- 1 32-bit value to fill up for 8-byte alignment
118c2ecf20Sopenharmony_ci *	- 2 miscellaneous 64-bit values
128c2ecf20Sopenharmony_ci *
138c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or
148c2ecf20Sopenharmony_ci * modify it under the terms of the GNU General Public License
158c2ecf20Sopenharmony_ci * as published by the Free Software Foundation; either version
168c2ecf20Sopenharmony_ci * 2 of the License, or (at your option) any later version.
178c2ecf20Sopenharmony_ci */
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#include <linux/types.h>
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_cistruct ipc64_perm
228c2ecf20Sopenharmony_ci{
238c2ecf20Sopenharmony_ci	__kernel_key_t	key;
248c2ecf20Sopenharmony_ci	__kernel_uid_t	uid;
258c2ecf20Sopenharmony_ci	__kernel_gid_t	gid;
268c2ecf20Sopenharmony_ci	__kernel_uid_t	cuid;
278c2ecf20Sopenharmony_ci	__kernel_gid_t	cgid;
288c2ecf20Sopenharmony_ci	__kernel_mode_t	mode;
298c2ecf20Sopenharmony_ci	unsigned int	seq;
308c2ecf20Sopenharmony_ci	unsigned int	__pad1;
318c2ecf20Sopenharmony_ci	unsigned long long __unused1;
328c2ecf20Sopenharmony_ci	unsigned long long __unused2;
338c2ecf20Sopenharmony_ci};
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#endif /* _ASM_POWERPC_IPCBUF_H */
36