msgbuf.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_MSGBUF_H
  3. #define _ASM_MSGBUF_H
  4. /*
  5. * The msqid64_ds structure for the MIPS architecture.
  6. * Note extra padding because this structure is passed back and forth
  7. * between kernel and user space.
  8. *
  9. * Pad space is left for:
  10. * - 2 miscellaneous unsigned long values
  11. */
  12. #if defined(__mips64)
  13. struct msqid64_ds {
  14. struct ipc64_perm msg_perm;
  15. __kernel_time_t msg_stime; /* last msgsnd time */
  16. __kernel_time_t msg_rtime; /* last msgrcv time */
  17. __kernel_time_t msg_ctime; /* last change time */
  18. unsigned long msg_cbytes; /* current number of bytes on queue */
  19. unsigned long msg_qnum; /* number of messages in queue */
  20. unsigned long msg_qbytes; /* max number of bytes on queue */
  21. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  22. __kernel_pid_t msg_lrpid; /* last receive pid */
  23. unsigned long __unused4;
  24. unsigned long __unused5;
  25. };
  26. #elif defined (__MIPSEB__)
  27. struct msqid64_ds {
  28. struct ipc64_perm msg_perm;
  29. unsigned long msg_stime_high;
  30. unsigned long msg_stime; /* last msgsnd time */
  31. unsigned long msg_rtime_high;
  32. unsigned long msg_rtime; /* last msgrcv time */
  33. unsigned long msg_ctime_high;
  34. unsigned long msg_ctime; /* last change time */
  35. unsigned long msg_cbytes; /* current number of bytes on queue */
  36. unsigned long msg_qnum; /* number of messages in queue */
  37. unsigned long msg_qbytes; /* max number of bytes on queue */
  38. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  39. __kernel_pid_t msg_lrpid; /* last receive pid */
  40. unsigned long __unused4;
  41. unsigned long __unused5;
  42. };
  43. #elif defined (__MIPSEL__)
  44. struct msqid64_ds {
  45. struct ipc64_perm msg_perm;
  46. unsigned long msg_stime; /* last msgsnd time */
  47. unsigned long msg_stime_high;
  48. unsigned long msg_rtime; /* last msgrcv time */
  49. unsigned long msg_rtime_high;
  50. unsigned long msg_ctime; /* last change time */
  51. unsigned long msg_ctime_high;
  52. unsigned long msg_cbytes; /* current number of bytes on queue */
  53. unsigned long msg_qnum; /* number of messages in queue */
  54. unsigned long msg_qbytes; /* max number of bytes on queue */
  55. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  56. __kernel_pid_t msg_lrpid; /* last receive pid */
  57. unsigned long __unused4;
  58. unsigned long __unused5;
  59. };
  60. #else
  61. #warning no endianess set
  62. #endif
  63. #endif /* _ASM_MSGBUF_H */