ipc.h 548 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3
#ifndef _LINUX_IPC_H
#define _LINUX_IPC_H

4
#include <linux/spinlock.h>
5
#include <linux/uidgid.h>
6
#include <uapi/linux/ipc.h>
C
Cedric Le Goater 已提交
7

L
Linus Torvalds 已提交
8 9 10
#define IPCMNI 32768  /* <= MAX_INT limit for ipc arrays (including sysctl changes) */

/* used by in-kernel data structures */
11
struct kern_ipc_perm {
L
Linus Torvalds 已提交
12
	spinlock_t	lock;
13
	bool		deleted;
N
Nadia Derbey 已提交
14
	int		id;
L
Linus Torvalds 已提交
15
	key_t		key;
16 17 18 19
	kuid_t		uid;
	kgid_t		gid;
	kuid_t		cuid;
	kgid_t		cgid;
20
	umode_t		mode;
L
Linus Torvalds 已提交
21 22
	unsigned long	seq;
	void		*security;
23 24 25

	struct rcu_head rcu;
	atomic_t refcount;
26
} ____cacheline_aligned_in_smp;
L
Linus Torvalds 已提交
27 28

#endif /* _LINUX_IPC_H */