Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 #ifndef _ASM_POWERPC_IPCBUF_H
0003 #define _ASM_POWERPC_IPCBUF_H
0004 
0005 /*
0006  * The ipc64_perm structure for the powerpc is identical to
0007  * kern_ipc_perm as we have always had 32-bit UIDs and GIDs in the
0008  * kernel.  Note extra padding because this structure is passed back
0009  * and forth between kernel and user space.  Pad space is left for:
0010  *  - 1 32-bit value to fill up for 8-byte alignment
0011  *  - 2 miscellaneous 64-bit values
0012  *
0013  * This program is free software; you can redistribute it and/or
0014  * modify it under the terms of the GNU General Public License
0015  * as published by the Free Software Foundation; either version
0016  * 2 of the License, or (at your option) any later version.
0017  */
0018 
0019 #include <linux/types.h>
0020 
0021 struct ipc64_perm
0022 {
0023     __kernel_key_t  key;
0024     __kernel_uid_t  uid;
0025     __kernel_gid_t  gid;
0026     __kernel_uid_t  cuid;
0027     __kernel_gid_t  cgid;
0028     __kernel_mode_t mode;
0029     unsigned int    seq;
0030     unsigned int    __pad1;
0031     unsigned long long __unused1;
0032     unsigned long long __unused2;
0033 };
0034 
0035 #endif /* _ASM_POWERPC_IPCBUF_H */