Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef __SPARC_IPCBUF_H
0003 #define __SPARC_IPCBUF_H
0004 
0005 #include <linux/posix_types.h>
0006 
0007 /*
0008  * The ipc64_perm structure for sparc/sparc64 architecture.
0009  * Note extra padding because this structure is passed back and forth
0010  * between kernel and user space.
0011  *
0012  * Pad space is left for:
0013  * - 32-bit seq
0014  * - on sparc for 32 bit mode (it is 32 bit on sparc64)
0015  * - 2 miscellaneous 64-bit values
0016  */
0017 
0018 struct ipc64_perm
0019 {
0020     __kernel_key_t      key;
0021     __kernel_uid32_t    uid;
0022     __kernel_gid32_t    gid;
0023     __kernel_uid32_t    cuid;
0024     __kernel_gid32_t    cgid;
0025 #ifndef __arch64__
0026     unsigned short      __pad0;
0027 #endif
0028     __kernel_mode_t     mode;
0029     unsigned short      __pad1;
0030     unsigned short      seq;
0031     unsigned long long  __unused1;
0032     unsigned long long  __unused2;
0033 };
0034 
0035 #endif /* __SPARC_IPCBUF_H */