2009-06-19 03:48:17 +08:00
|
|
|
#ifndef __ASM_GENERIC_IPCBUF_H
|
|
|
|
#define __ASM_GENERIC_IPCBUF_H
|
2007-10-15 19:57:47 +08:00
|
|
|
|
|
|
|
/*
|
2009-06-19 03:48:17 +08:00
|
|
|
* The generic ipc64_perm structure:
|
2007-10-15 19:57:47 +08:00
|
|
|
* Note extra padding because this structure is passed back and forth
|
|
|
|
* between kernel and user space.
|
|
|
|
*
|
2009-06-19 03:48:17 +08:00
|
|
|
* ipc64_perm was originally meant to be architecture specific, but
|
|
|
|
* everyone just ended up making identical copies without specific
|
|
|
|
* optimizations, so we may just as well all use the same one.
|
|
|
|
*
|
2007-10-15 19:57:47 +08:00
|
|
|
* Pad space is left for:
|
2009-06-19 03:48:17 +08:00
|
|
|
* - 32-bit mode_t on architectures that only had 16 bit
|
|
|
|
* - 32-bit seq
|
2007-10-15 19:57:47 +08:00
|
|
|
* - 2 miscellaneous 32-bit values
|
|
|
|
*/
|
|
|
|
|
2008-03-23 16:02:26 +08:00
|
|
|
struct ipc64_perm {
|
2007-10-15 19:57:47 +08:00
|
|
|
__kernel_key_t key;
|
|
|
|
__kernel_uid32_t uid;
|
|
|
|
__kernel_gid32_t gid;
|
|
|
|
__kernel_uid32_t cuid;
|
|
|
|
__kernel_gid32_t cgid;
|
|
|
|
__kernel_mode_t mode;
|
|
|
|
unsigned short __pad1;
|
|
|
|
unsigned short seq;
|
|
|
|
unsigned short __pad2;
|
|
|
|
unsigned long __unused1;
|
|
|
|
unsigned long __unused2;
|
|
|
|
};
|
|
|
|
|
2009-06-19 03:48:17 +08:00
|
|
|
#endif /* __ASM_GENERIC_IPCBUF_H */
|