ipc.h 613 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_IPC_H
  3. #define _LINUX_IPC_H
  4. #include <linux/spinlock.h>
  5. #include <linux/uidgid.h>
  6. #include <linux/rhashtable-types.h>
  7. #include <uapi/linux/ipc.h>
  8. #include <linux/refcount.h>
  9. /* used by in-kernel data structures */
  10. struct kern_ipc_perm {
  11. spinlock_t lock;
  12. bool deleted;
  13. int id;
  14. key_t key;
  15. kuid_t uid;
  16. kgid_t gid;
  17. kuid_t cuid;
  18. kgid_t cgid;
  19. umode_t mode;
  20. unsigned long seq;
  21. void *security;
  22. struct rhash_head khtnode;
  23. struct rcu_head rcu;
  24. refcount_t refcount;
  25. } ____cacheline_aligned_in_smp __randomize_layout;
  26. #endif /* _LINUX_IPC_H */