sembuf.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_X86_SEMBUF_H
  3. #define _ASM_X86_SEMBUF_H
  4. /*
  5. * The semid64_ds structure for x86 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. * x86_64 and x32 incorrectly added padding here, so the structures
  13. * are still incompatible with the padding on x86.
  14. */
  15. struct semid64_ds {
  16. struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
  17. #ifdef __i386__
  18. unsigned long sem_otime; /* last semop time */
  19. unsigned long sem_otime_high;
  20. unsigned long sem_ctime; /* last change time */
  21. unsigned long sem_ctime_high;
  22. #else
  23. __kernel_time_t sem_otime; /* last semop time */
  24. __kernel_ulong_t __unused1;
  25. __kernel_time_t sem_ctime; /* last change time */
  26. __kernel_ulong_t __unused2;
  27. #endif
  28. __kernel_ulong_t sem_nsems; /* no. of semaphores in array */
  29. __kernel_ulong_t __unused3;
  30. __kernel_ulong_t __unused4;
  31. };
  32. #endif /* _ASM_X86_SEMBUF_H */