sembuf.h 1.1 KB

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