shmbuf.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _S390_SHMBUF_H
  3. #define _S390_SHMBUF_H
  4. /*
  5. * The shmid64_ds structure for S/390 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. * - 64-bit time_t to solve y2038 problem (for !__s390x__)
  11. * - 2 miscellaneous 32-bit values
  12. */
  13. struct shmid64_ds {
  14. struct ipc64_perm shm_perm; /* operation perms */
  15. size_t shm_segsz; /* size of segment (bytes) */
  16. __kernel_time_t shm_atime; /* last attach time */
  17. #ifndef __s390x__
  18. unsigned long __unused1;
  19. #endif /* ! __s390x__ */
  20. __kernel_time_t shm_dtime; /* last detach time */
  21. #ifndef __s390x__
  22. unsigned long __unused2;
  23. #endif /* ! __s390x__ */
  24. __kernel_time_t shm_ctime; /* last change time */
  25. #ifndef __s390x__
  26. unsigned long __unused3;
  27. #endif /* ! __s390x__ */
  28. __kernel_pid_t shm_cpid; /* pid of creator */
  29. __kernel_pid_t shm_lpid; /* pid of last operator */
  30. unsigned long shm_nattch; /* no. of current attaches */
  31. unsigned long __unused4;
  32. unsigned long __unused5;
  33. };
  34. struct shminfo64 {
  35. unsigned long shmmax;
  36. unsigned long shmmin;
  37. unsigned long shmmni;
  38. unsigned long shmseg;
  39. unsigned long shmall;
  40. unsigned long __unused1;
  41. unsigned long __unused2;
  42. unsigned long __unused3;
  43. unsigned long __unused4;
  44. };
  45. #endif /* _S390_SHMBUF_H */