1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2#ifndef __S390_IPCBUF_H__ 3#define __S390_IPCBUF_H__ 4 5#include <linux/posix_types.h> 6 7/* 8 * The user_ipc_perm structure for S/390 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 mode_t and seq 14 * - 2 miscellaneous 32-bit values 15 */ 16 17struct ipc64_perm 18{ 19 __kernel_key_t key; 20 __kernel_uid32_t uid; 21 __kernel_gid32_t gid; 22 __kernel_uid32_t cuid; 23 __kernel_gid32_t cgid; 24 __kernel_mode_t mode; 25 unsigned short __pad1; 26 unsigned short seq; 27#ifndef __s390x__ 28 unsigned short __pad2; 29#endif /* ! __s390x__ */ 30 unsigned long __unused1; 31 unsigned long __unused2; 32}; 33 34#endif /* __S390_IPCBUF_H__ */ 35