]>
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> |
0eb71a9d | 7 | #include <linux/rhashtable-types.h> |
607ca46e | 8 | #include <uapi/linux/ipc.h> |
9405c03e | 9 | #include <linux/refcount.h> |
b119f13f | 10 | |
1da177e4 | 11 | /* used by in-kernel data structures */ |
60f3e00d | 12 | struct kern_ipc_perm { |
1da177e4 | 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; | |
60f3e00d | 21 | umode_t mode; |
1da177e4 LT |
22 | unsigned long seq; |
23 | void *security; | |
dba4cdd3 | 24 | |
0cfb6aee GK |
25 | struct rhash_head khtnode; |
26 | ||
dba4cdd3 | 27 | struct rcu_head rcu; |
9405c03e | 28 | refcount_t refcount; |
3859a271 | 29 | } ____cacheline_aligned_in_smp __randomize_layout; |
1da177e4 | 30 | |
1da177e4 | 31 | #endif /* _LINUX_IPC_H */ |