Merge tag 'for-linus-20160523' of git://git.infradead.org/linux-mtd
[linux-2.6-block.git] / include / linux / ipc.h
CommitLineData
1da177e4
LT
1#ifndef _LINUX_IPC_H
2#define _LINUX_IPC_H
3
0a3021f4 4#include <linux/spinlock.h>
1efdb69b 5#include <linux/uidgid.h>
607ca46e 6#include <uapi/linux/ipc.h>
b119f13f 7
1da177e4
LT
8#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
9
10/* used by in-kernel data structures */
11struct kern_ipc_perm
12{
13 spinlock_t lock;
72a8ff2f 14 bool deleted;
7ca7e564 15 int id;
1da177e4 16 key_t key;
1efdb69b
EB
17 kuid_t uid;
18 kgid_t gid;
19 kuid_t cuid;
20 kgid_t cgid;
2570ebbd 21 umode_t mode;
1da177e4
LT
22 unsigned long seq;
23 void *security;
24};
25
1da177e4 26#endif /* _LINUX_IPC_H */