ipcbuf.h 940 B

1234567891011121314151617181920212223242526272829303132333435
  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. /* pad if mode_t is u16: */
  25. unsigned char __pad1[4 - sizeof(__kernel_mode_t)];
  26. unsigned short seq;
  27. unsigned short __pad2;
  28. __kernel_ulong_t __unused1;
  29. __kernel_ulong_t __unused2;
  30. };
  31. #endif /* __ASM_GENERIC_IPCBUF_H */