shmbuf.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _PARISC_SHMBUF_H
  3. #define _PARISC_SHMBUF_H
  4. #include <asm/bitsperlong.h>
  5. /*
  6. * The shmid64_ds structure for parisc architecture.
  7. * Note extra padding because this structure is passed back and forth
  8. * between kernel and user space.
  9. *
  10. * Pad space is left for:
  11. * - 2 miscellaneous 32-bit values
  12. */
  13. struct shmid64_ds {
  14. struct ipc64_perm shm_perm; /* operation perms */
  15. #if __BITS_PER_LONG == 64
  16. __kernel_time_t shm_atime; /* last attach time */
  17. __kernel_time_t shm_dtime; /* last detach time */
  18. __kernel_time_t shm_ctime; /* last change time */
  19. #else
  20. unsigned long shm_atime_high;
  21. unsigned long shm_atime; /* last attach time */
  22. unsigned long shm_dtime_high;
  23. unsigned long shm_dtime; /* last detach time */
  24. unsigned long shm_ctime_high;
  25. unsigned long shm_ctime; /* last change time */
  26. unsigned int __pad4;
  27. #endif
  28. __kernel_size_t shm_segsz; /* size of segment (bytes) */
  29. __kernel_pid_t shm_cpid; /* pid of creator */
  30. __kernel_pid_t shm_lpid; /* pid of last operator */
  31. unsigned long shm_nattch; /* no. of current attaches */
  32. unsigned long __unused1;
  33. unsigned long __unused2;
  34. };
  35. struct shminfo64 {
  36. unsigned long shmmax;
  37. unsigned long shmmin;
  38. unsigned long shmmni;
  39. unsigned long shmseg;
  40. unsigned long shmall;
  41. unsigned long __unused1;
  42. unsigned long __unused2;
  43. unsigned long __unused3;
  44. unsigned long __unused4;
  45. };
  46. #endif /* _PARISC_SHMBUF_H */