msgbuf.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _SPARC_MSGBUF_H
  3. #define _SPARC_MSGBUF_H
  4. /*
  5. * The msqid64_ds structure for sparc64 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 32-bit values
  11. */
  12. struct msqid64_ds {
  13. struct ipc64_perm msg_perm;
  14. #if defined(__sparc__) && defined(__arch64__)
  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. #else
  19. unsigned long msg_stime_high;
  20. unsigned long msg_stime; /* last msgsnd time */
  21. unsigned long msg_rtime_high;
  22. unsigned long msg_rtime; /* last msgrcv time */
  23. unsigned long msg_ctime_high;
  24. unsigned long msg_ctime; /* last change time */
  25. #endif
  26. unsigned long msg_cbytes; /* current number of bytes on queue */
  27. unsigned long msg_qnum; /* number of messages in queue */
  28. unsigned long msg_qbytes; /* max number of bytes on queue */
  29. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  30. __kernel_pid_t msg_lrpid; /* last receive pid */
  31. unsigned long __unused1;
  32. unsigned long __unused2;
  33. };
  34. #endif /* _SPARC_MSGBUF_H */