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