sembuf.h 954 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_SEMBUF_H
  9. #define _ASM_MICROBLAZE_SEMBUF_H
  10. /*
  11. * The semid64_ds structure for microblaze 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. * - 64-bit time_t to solve y2038 problem
  17. * - 2 miscellaneous 32-bit values
  18. */
  19. struct semid64_ds {
  20. struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
  21. __kernel_time_t sem_otime; /* last semop time */
  22. unsigned long __unused1;
  23. __kernel_time_t sem_ctime; /* last change time */
  24. unsigned long __unused2;
  25. unsigned long sem_nsems; /* no. of semaphores in array */
  26. unsigned long __unused3;
  27. unsigned long __unused4;
  28. };
  29. #endif /* _ASM_MICROBLAZE_SEMBUF_H */