]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - include/linux/ipc.h
Input: wm97xx: add new AC97 bus support
[mirror_ubuntu-focal-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>
0cfb6aee 6#include <linux/rhashtable.h>
607ca46e 7#include <uapi/linux/ipc.h>
9405c03e 8#include <linux/refcount.h>
b119f13f 9
1da177e4
LT
10#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
11
12/* used by in-kernel data structures */
60f3e00d 13struct kern_ipc_perm {
1da177e4 14 spinlock_t lock;
72a8ff2f 15 bool deleted;
7ca7e564 16 int id;
1da177e4 17 key_t key;
1efdb69b
EB
18 kuid_t uid;
19 kgid_t gid;
20 kuid_t cuid;
21 kgid_t cgid;
60f3e00d 22 umode_t mode;
1da177e4
LT
23 unsigned long seq;
24 void *security;
dba4cdd3 25
0cfb6aee
GK
26 struct rhash_head khtnode;
27
dba4cdd3 28 struct rcu_head rcu;
9405c03e 29 refcount_t refcount;
3859a271 30} ____cacheline_aligned_in_smp __randomize_layout;
1da177e4 31
1da177e4 32#endif /* _LINUX_IPC_H */