]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/ipc.h
Merge tag 'ntb-4.13-bugfixes' of git://github.com/jonmason/ntb
[mirror_ubuntu-artful-kernel.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 */
60f3e00d 11struct kern_ipc_perm {
1da177e4 12 spinlock_t lock;
72a8ff2f 13 bool deleted;
7ca7e564 14 int id;
1da177e4 15 key_t key;
1efdb69b
EB
16 kuid_t uid;
17 kgid_t gid;
18 kuid_t cuid;
19 kgid_t cgid;
60f3e00d 20 umode_t mode;
1da177e4
LT
21 unsigned long seq;
22 void *security;
dba4cdd3
MS
23
24 struct rcu_head rcu;
25 atomic_t refcount;
3859a271 26} ____cacheline_aligned_in_smp __randomize_layout;
1da177e4 27
1da177e4 28#endif /* _LINUX_IPC_H */