xref: /openbmc/linux/arch/xtensa/include/uapi/asm/ipcbuf.h (revision 5b009673)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
283596729SDavid Howells /*
383596729SDavid Howells  * include/asm-xtensa/ipcbuf.h
483596729SDavid Howells  *
583596729SDavid Howells  * The ipc64_perm structure for the Xtensa architecture.
683596729SDavid Howells  * Note extra padding because this structure is passed back and forth
783596729SDavid Howells  * between kernel and user space.
883596729SDavid Howells  *
983596729SDavid Howells  * Copyright (C) 2001 - 2005 Tensilica Inc.
1083596729SDavid Howells  */
1183596729SDavid Howells 
1283596729SDavid Howells #ifndef _XTENSA_IPCBUF_H
1383596729SDavid Howells #define _XTENSA_IPCBUF_H
1483596729SDavid Howells 
155b009673SMasahiro Yamada #include <linux/posix_types.h>
165b009673SMasahiro Yamada 
1783596729SDavid Howells /*
1883596729SDavid Howells  * Pad space is left for:
1983596729SDavid Howells  * - 32-bit mode_t and seq
2083596729SDavid Howells  * - 2 miscellaneous 32-bit values
2183596729SDavid Howells  *
2283596729SDavid Howells  * This file is subject to the terms and conditions of the GNU General
2383596729SDavid Howells  * Public License.  See the file "COPYING" in the main directory of
2483596729SDavid Howells  * this archive for more details.
2583596729SDavid Howells  */
2683596729SDavid Howells 
2783596729SDavid Howells struct ipc64_perm
2883596729SDavid Howells {
2983596729SDavid Howells 	__kernel_key_t		key;
3083596729SDavid Howells 	__kernel_uid32_t	uid;
3183596729SDavid Howells 	__kernel_gid32_t	gid;
3283596729SDavid Howells 	__kernel_uid32_t	cuid;
3383596729SDavid Howells 	__kernel_gid32_t	cgid;
3483596729SDavid Howells 	__kernel_mode_t		mode;
3583596729SDavid Howells 	unsigned long		seq;
3683596729SDavid Howells 	unsigned long		__unused1;
3783596729SDavid Howells 	unsigned long		__unused2;
3883596729SDavid Howells };
3983596729SDavid Howells 
4083596729SDavid Howells #endif /* _XTENSA_IPCBUF_H */
41