msgbuf.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _ASM_X86_MSGBUF_H
  2. #define _ASM_X86_MSGBUF_H
  3. /*
  4. * The msqid64_ds structure for i386 architecture.
  5. * Note extra padding because this structure is passed back and forth
  6. * between kernel and user space.
  7. *
  8. * Pad space on i386 is left for:
  9. * - 64-bit time_t to solve y2038 problem
  10. * - 2 miscellaneous 32-bit values
  11. *
  12. * Pad space on x8664 is left for:
  13. * - 2 miscellaneous 64-bit values
  14. */
  15. struct msqid64_ds {
  16. struct ipc64_perm msg_perm;
  17. __kernel_time_t msg_stime; /* last msgsnd time */
  18. #ifdef __i386__
  19. unsigned long __unused1;
  20. #endif
  21. __kernel_time_t msg_rtime; /* last msgrcv time */
  22. #ifdef __i386__
  23. unsigned long __unused2;
  24. #endif
  25. __kernel_time_t msg_ctime; /* last change time */
  26. #ifdef __i386__
  27. unsigned long __unused3;
  28. #endif
  29. unsigned long msg_cbytes; /* current number of bytes on queue */
  30. unsigned long msg_qnum; /* number of messages in queue */
  31. unsigned long msg_qbytes; /* max number of bytes on queue */
  32. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  33. __kernel_pid_t msg_lrpid; /* last receive pid */
  34. unsigned long __unused4;
  35. unsigned long __unused5;
  36. };
  37. #endif /* _ASM_X86_MSGBUF_H */