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 */
|
2017-05-09 01:57:06 +03:00
|
|
|
struct kern_ipc_perm {
|
2005-04-17 02:20:36 +04:00
|
|
|
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;
|
2017-05-09 01:57:06 +03:00
|
|
|
umode_t mode;
|
2005-04-17 02:20:36 +04:00
|
|
|
unsigned long seq;
|
|
|
|
void *security;
|
2017-05-09 01:57:06 +03:00
|
|
|
} ____cacheline_aligned_in_smp;
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
#endif /* _LINUX_IPC_H */
|