2005-04-17 06:20:36 +08:00
|
|
|
#ifndef _LINUX_IPC_H
|
|
|
|
#define _LINUX_IPC_H
|
|
|
|
|
2007-07-16 14:39:57 +08:00
|
|
|
#include <linux/spinlock.h>
|
2012-02-08 08:54:11 +08:00
|
|
|
#include <linux/uidgid.h>
|
2012-10-13 17:46:48 +08:00
|
|
|
#include <uapi/linux/ipc.h>
|
2006-10-04 17:15:19 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
|
|
|
|
|
|
|
|
/* used by in-kernel data structures */
|
|
|
|
struct kern_ipc_perm
|
|
|
|
{
|
|
|
|
spinlock_t lock;
|
2014-01-28 09:07:02 +08:00
|
|
|
bool deleted;
|
2007-10-19 14:40:48 +08:00
|
|
|
int id;
|
2005-04-17 06:20:36 +08:00
|
|
|
key_t key;
|
2012-02-08 08:54:11 +08:00
|
|
|
kuid_t uid;
|
|
|
|
kgid_t gid;
|
|
|
|
kuid_t cuid;
|
|
|
|
kgid_t cgid;
|
2011-07-28 02:03:22 +08:00
|
|
|
umode_t mode;
|
2005-04-17 06:20:36 +08:00
|
|
|
unsigned long seq;
|
|
|
|
void *security;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _LINUX_IPC_H */
|