sembuf.h 908 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _PARISC_SEMBUF_H
  3. #define _PARISC_SEMBUF_H
  4. #include <asm/bitsperlong.h>
  5. #include <asm/ipcbuf.h>
  6. /*
  7. * The semid64_ds structure for parisc architecture.
  8. * Note extra padding because this structure is passed back and forth
  9. * between kernel and user space.
  10. *
  11. * Pad space is left for:
  12. * - 2 miscellaneous 32-bit values
  13. */
  14. struct semid64_ds {
  15. struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
  16. #if __BITS_PER_LONG == 64
  17. long sem_otime; /* last semop time */
  18. long sem_ctime; /* last change time */
  19. #else
  20. unsigned long sem_otime_high;
  21. unsigned long sem_otime; /* last semop time */
  22. unsigned long sem_ctime_high;
  23. unsigned long sem_ctime; /* last change time */
  24. #endif
  25. unsigned long sem_nsems; /* no. of semaphores in array */
  26. unsigned long __unused1;
  27. unsigned long __unused2;
  28. };
  29. #endif /* _PARISC_SEMBUF_H */