2005-04-17 05:20:36 +07:00
|
|
|
#ifndef _LINUX_IPC_H
|
|
|
|
#define _LINUX_IPC_H
|
|
|
|
|
2007-07-16 13:39:57 +07:00
|
|
|
#include <linux/spinlock.h>
|
2012-02-08 07:54:11 +07:00
|
|
|
#include <linux/uidgid.h>
|
2012-10-13 16:46:48 +07:00
|
|
|
#include <uapi/linux/ipc.h>
|
2006-10-04 16:15:19 +07:00
|
|
|
|
2005-04-17 05:20:36 +07: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 08:07:02 +07:00
|
|
|
bool deleted;
|
2007-10-19 13:40:48 +07:00
|
|
|
int id;
|
2005-04-17 05:20:36 +07:00
|
|
|
key_t key;
|
2012-02-08 07:54:11 +07:00
|
|
|
kuid_t uid;
|
|
|
|
kgid_t gid;
|
|
|
|
kuid_t cuid;
|
|
|
|
kgid_t cgid;
|
2011-07-28 01:03:22 +07:00
|
|
|
umode_t mode;
|
2005-04-17 05:20:36 +07:00
|
|
|
unsigned long seq;
|
|
|
|
void *security;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _LINUX_IPC_H */
|