shmbuf.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef _S390_SHMBUF_H
  2. #define _S390_SHMBUF_H
  3. /*
  4. * The shmid64_ds structure for S/390 architecture.
  5. * Note extra padding because this structure is passed back and forth
  6. * between kernel and user space.
  7. *
  8. * Pad space is left for:
  9. * - 64-bit time_t to solve y2038 problem (for !__s390x__)
  10. * - 2 miscellaneous 32-bit values
  11. */
  12. struct shmid64_ds {
  13. struct ipc64_perm shm_perm; /* operation perms */
  14. size_t shm_segsz; /* size of segment (bytes) */
  15. __kernel_time_t shm_atime; /* last attach time */
  16. #ifndef __s390x__
  17. unsigned long __unused1;
  18. #endif /* ! __s390x__ */
  19. __kernel_time_t shm_dtime; /* last detach time */
  20. #ifndef __s390x__
  21. unsigned long __unused2;
  22. #endif /* ! __s390x__ */
  23. __kernel_time_t shm_ctime; /* last change time */
  24. #ifndef __s390x__
  25. unsigned long __unused3;
  26. #endif /* ! __s390x__ */
  27. __kernel_pid_t shm_cpid; /* pid of creator */
  28. __kernel_pid_t shm_lpid; /* pid of last operator */
  29. unsigned long shm_nattch; /* no. of current attaches */
  30. unsigned long __unused4;
  31. unsigned long __unused5;
  32. };
  33. struct shminfo64 {
  34. unsigned long shmmax;
  35. unsigned long shmmin;
  36. unsigned long shmmni;
  37. unsigned long shmseg;
  38. unsigned long shmall;
  39. unsigned long __unused1;
  40. unsigned long __unused2;
  41. unsigned long __unused3;
  42. unsigned long __unused4;
  43. };
  44. #endif /* _S390_SHMBUF_H */