Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _LINUX_IPC_H |
2 | #define _LINUX_IPC_H | ||||
3 | |||||
Robert P. J. Day | 0a3021f | 2007-07-15 23:39:57 -0700 | [diff] [blame] | 4 | #include <linux/spinlock.h> |
Eric W. Biederman | 1efdb69 | 2012-02-07 16:54:11 -0800 | [diff] [blame] | 5 | #include <linux/uidgid.h> |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 6 | #include <uapi/linux/ipc.h> |
Cedric Le Goater | b119f13 | 2006-10-04 02:15:19 -0700 | [diff] [blame] | 7 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | #define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */ |
9 | |||||
10 | /* used by in-kernel data structures */ | ||||
Davidlohr Bueso | 60f3e00 | 2017-05-08 15:57:06 -0700 | [diff] [blame] | 11 | struct kern_ipc_perm { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | spinlock_t lock; |
Rafael Aquini | 72a8ff2 | 2014-01-27 17:07:02 -0800 | [diff] [blame] | 13 | bool deleted; |
Nadia Derbey | 7ca7e56 | 2007-10-18 23:40:48 -0700 | [diff] [blame] | 14 | int id; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | key_t key; |
Eric W. Biederman | 1efdb69 | 2012-02-07 16:54:11 -0800 | [diff] [blame] | 16 | kuid_t uid; |
17 | kgid_t gid; | ||||
18 | kuid_t cuid; | ||||
19 | kgid_t cgid; | ||||
Davidlohr Bueso | 60f3e00 | 2017-05-08 15:57:06 -0700 | [diff] [blame] | 20 | umode_t mode; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | unsigned long seq; |
22 | void *security; | ||||
Davidlohr Bueso | 60f3e00 | 2017-05-08 15:57:06 -0700 | [diff] [blame] | 23 | } ____cacheline_aligned_in_smp; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | #endif /* _LINUX_IPC_H */ |