sembuf.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2. #ifndef _ASM_POWERPC_SEMBUF_H
  3. #define _ASM_POWERPC_SEMBUF_H
  4. /*
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * as published by the Free Software Foundation; either version
  8. * 2 of the License, or (at your option) any later version.
  9. */
  10. /*
  11. * The semid64_ds structure for PPC architecture.
  12. * Note extra padding because this structure is passed back and forth
  13. * between kernel and user space.
  14. *
  15. * Pad space is left for:
  16. * - 2 miscellaneous 32/64-bit values
  17. */
  18. struct semid64_ds {
  19. struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
  20. #ifndef __powerpc64__
  21. unsigned long sem_otime_high;
  22. unsigned long sem_otime; /* last semop time */
  23. unsigned long sem_ctime_high;
  24. unsigned long sem_ctime; /* last change time */
  25. #else
  26. __kernel_time_t sem_otime; /* last semop time */
  27. __kernel_time_t sem_ctime; /* last change time */
  28. #endif
  29. unsigned long sem_nsems; /* no. of semaphores in array */
  30. unsigned long __unused3;
  31. unsigned long __unused4;
  32. };
  33. #endif /* _ASM_POWERPC_SEMBUF_H */