Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1#ifndef _LINUX_IPC_H
2#define _LINUX_IPC_H
3
4#include <linux/spinlock.h>
5#include <linux/uidgid.h>
6#include <uapi/linux/ipc.h>
7
8#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
9
10/* used by in-kernel data structures */
11struct kern_ipc_perm {
12 spinlock_t lock;
13 bool deleted;
14 int id;
15 key_t key;
16 kuid_t uid;
17 kgid_t gid;
18 kuid_t cuid;
19 kgid_t cgid;
20 umode_t mode;
21 unsigned long seq;
22 void *security;
23
24 struct rcu_head rcu;
25 atomic_t refcount;
26} ____cacheline_aligned_in_smp __randomize_layout;
27
28#endif /* _LINUX_IPC_H */