diff options
Diffstat (limited to 'include/linux/ipc.h')
| -rw-r--r-- | include/linux/ipc.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/ipc.h b/include/linux/ipc.h index fadd579d577d..9b1434247aab 100644 --- a/include/linux/ipc.h +++ b/include/linux/ipc.h @@ -1,11 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_IPC_H #define _LINUX_IPC_H -#include <linux/spinlock.h> +#include <linux/spinlock_types.h> #include <linux/uidgid.h> +#include <linux/rhashtable-types.h> #include <uapi/linux/ipc.h> - -#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */ +#include <linux/refcount.h> /* used by in-kernel data structures */ struct kern_ipc_perm { @@ -21,8 +22,10 @@ struct kern_ipc_perm { unsigned long seq; void *security; + struct rhash_head khtnode; + struct rcu_head rcu; - atomic_t refcount; + refcount_t refcount; } ____cacheline_aligned_in_smp __randomize_layout; #endif /* _LINUX_IPC_H */ |
