#ifndef __ASM_GENERIC_IPCBUF_H1#define __ASM_GENERIC_IPCBUF_H23/*4* The generic ipc64_perm structure:5* Note extra padding because this structure is passed back and forth6* between kernel and user space.7*8* ipc64_perm was originally meant to be architecture specific, but9* everyone just ended up making identical copies without specific10* optimizations, so we may just as well all use the same one.11*12* Pad space is left for:13* - 32-bit mode_t on architectures that only had 16 bit14* - 32-bit seq15* - 2 miscellaneous 32-bit values16*/1718struct ipc64_perm {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/* pad if mode_t is u16: */26unsigned char __pad1[4 - sizeof(__kernel_mode_t)];27unsigned short seq;28unsigned short __pad2;29unsigned long __unused1;30unsigned long __unused2;31};3233#endif /* __ASM_GENERIC_IPCBUF_H */343536