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