]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | #ifndef _LINUX_IPC_H |
3 | #define _LINUX_IPC_H | |
4 | ||
0a3021f4 | 5 | #include <linux/spinlock.h> |
1efdb69b | 6 | #include <linux/uidgid.h> |
0cfb6aee | 7 | #include <linux/rhashtable.h> |
607ca46e | 8 | #include <uapi/linux/ipc.h> |
9405c03e | 9 | #include <linux/refcount.h> |
b119f13f | 10 | |
1da177e4 LT |
11 | #define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */ |
12 | ||
13 | /* used by in-kernel data structures */ | |
60f3e00d | 14 | struct kern_ipc_perm { |
1da177e4 | 15 | spinlock_t lock; |
72a8ff2f | 16 | bool deleted; |
7ca7e564 | 17 | int id; |
1da177e4 | 18 | key_t key; |
1efdb69b EB |
19 | kuid_t uid; |
20 | kgid_t gid; | |
21 | kuid_t cuid; | |
22 | kgid_t cgid; | |
60f3e00d | 23 | umode_t mode; |
1da177e4 LT |
24 | unsigned long seq; |
25 | void *security; | |
dba4cdd3 | 26 | |
0cfb6aee GK |
27 | struct rhash_head khtnode; |
28 | ||
dba4cdd3 | 29 | struct rcu_head rcu; |
9405c03e | 30 | refcount_t refcount; |
3859a271 | 31 | } ____cacheline_aligned_in_smp __randomize_layout; |
1da177e4 | 32 | |
1da177e4 | 33 | #endif /* _LINUX_IPC_H */ |