sembuf.h 891 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _SPARC_SEMBUF_H
  3. #define _SPARC_SEMBUF_H
  4. /*
  5. * The semid64_ds structure for sparc 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 semid64_ds {
  13. struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
  14. #if defined(__sparc__) && defined(__arch64__)
  15. __kernel_time_t sem_otime; /* last semop time */
  16. __kernel_time_t sem_ctime; /* last change time */
  17. #else
  18. unsigned long sem_otime_high;
  19. unsigned long sem_otime; /* last semop time */
  20. unsigned long sem_ctime_high;
  21. unsigned long sem_ctime; /* last change time */
  22. #endif
  23. unsigned long sem_nsems; /* no. of semaphores in array */
  24. unsigned long __unused1;
  25. unsigned long __unused2;
  26. };
  27. #endif /* _SPARC64_SEMBUF_H */