unify {de,}mangle_poll(), get rid of kernel-side POLL...
[cris-mirror.git] / include / linux / ipc.h
blob821b2f2609926636a6b88c5e25cb23ecc8f92806
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_IPC_H
3 #define _LINUX_IPC_H
5 #include <linux/spinlock.h>
6 #include <linux/uidgid.h>
7 #include <linux/rhashtable.h>
8 #include <uapi/linux/ipc.h>
9 #include <linux/refcount.h>
11 #define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
13 /* used by in-kernel data structures */
14 struct kern_ipc_perm {
15 spinlock_t lock;
16 bool deleted;
17 int id;
18 key_t key;
19 kuid_t uid;
20 kgid_t gid;
21 kuid_t cuid;
22 kgid_t cgid;
23 umode_t mode;
24 unsigned long seq;
25 void *security;
27 struct rhash_head khtnode;
29 struct rcu_head rcu;
30 refcount_t refcount;
31 } ____cacheline_aligned_in_smp __randomize_layout;
33 #endif /* _LINUX_IPC_H */