sembuf.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_SEMBUF_H
  3. #define _ASM_SEMBUF_H
  4. /*
  5. * The semid64_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 2 miscellaneous 64-bit values on mips64,
  10. * but used for the upper 32 bit of the time values on mips32.
  11. */
  12. #ifdef __mips64
  13. struct semid64_ds {
  14. struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
  15. __kernel_time_t sem_otime; /* last semop time */
  16. __kernel_time_t sem_ctime; /* last change time */
  17. unsigned long sem_nsems; /* no. of semaphores in array */
  18. unsigned long __unused1;
  19. unsigned long __unused2;
  20. };
  21. #else
  22. struct semid64_ds {
  23. struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
  24. unsigned long sem_otime; /* last semop time */
  25. unsigned long sem_ctime; /* last change time */
  26. unsigned long sem_nsems; /* no. of semaphores in array */
  27. unsigned long sem_otime_high;
  28. unsigned long sem_ctime_high;
  29. };
  30. #endif
  31. #endif /* _ASM_SEMBUF_H */