sembuf_powerpc.h 1.1 KB

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