ipcbuf.h 876 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __ASM_GENERIC_IPCBUF_H
  2. #define __ASM_GENERIC_IPCBUF_H
  3. /*
  4. * The generic ipc64_perm structure:
  5. * Note extra padding because this structure is passed back and forth
  6. * between kernel and user space.
  7. *
  8. * ipc64_perm was originally meant to be architecture specific, but
  9. * everyone just ended up making identical copies without specific
  10. * optimizations, so we may just as well all use the same one.
  11. *
  12. * Pad space is left for:
  13. * - 32-bit mode_t on architectures that only had 16 bit
  14. * - 32-bit seq
  15. * - 2 miscellaneous 32-bit values
  16. */
  17. struct ipc64_perm {
  18. __kernel_key_t key;
  19. __kernel_uid32_t uid;
  20. __kernel_gid32_t gid;
  21. __kernel_uid32_t cuid;
  22. __kernel_gid32_t cgid;
  23. __kernel_mode_t mode;
  24. unsigned short __pad1;
  25. unsigned short seq;
  26. unsigned short __pad2;
  27. unsigned long __unused1;
  28. unsigned long __unused2;
  29. };
  30. #endif /* __ASM_GENERIC_IPCBUF_H */