ipc.h 477 B

1234567891011121314151617181920212223242526
  1. #ifndef _LINUX_IPC_H
  2. #define _LINUX_IPC_H
  3. #include <linux/spinlock.h>
  4. #include <linux/uidgid.h>
  5. #include <uapi/linux/ipc.h>
  6. #define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
  7. /* used by in-kernel data structures */
  8. struct kern_ipc_perm
  9. {
  10. spinlock_t lock;
  11. bool deleted;
  12. int id;
  13. key_t key;
  14. kuid_t uid;
  15. kgid_t gid;
  16. kuid_t cuid;
  17. kgid_t cgid;
  18. umode_t mode;
  19. unsigned long seq;
  20. void *security;
  21. };
  22. #endif /* _LINUX_IPC_H */