msgbuf.h 2.3 KB

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