shmbuf.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef _PARISC_SHMBUF_H
  2. #define _PARISC_SHMBUF_H
  3. #include <asm/bitsperlong.h>
  4. /*
  5. * The shmid64_ds structure for parisc 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
  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. unsigned int __pad1;
  17. #endif
  18. __kernel_time_t shm_atime; /* last attach time */
  19. #if __BITS_PER_LONG != 64
  20. unsigned int __pad2;
  21. #endif
  22. __kernel_time_t shm_dtime; /* last detach time */
  23. #if __BITS_PER_LONG != 64
  24. unsigned int __pad3;
  25. #endif
  26. __kernel_time_t shm_ctime; /* last change time */
  27. #if __BITS_PER_LONG != 64
  28. unsigned int __pad4;
  29. #endif
  30. __kernel_size_t shm_segsz; /* size of segment (bytes) */
  31. __kernel_pid_t shm_cpid; /* pid of creator */
  32. __kernel_pid_t shm_lpid; /* pid of last operator */
  33. unsigned long shm_nattch; /* no. of current attaches */
  34. unsigned long __unused1;
  35. unsigned long __unused2;
  36. };
  37. struct shminfo64 {
  38. unsigned long shmmax;
  39. unsigned long shmmin;
  40. unsigned long shmmni;
  41. unsigned long shmseg;
  42. unsigned long shmall;
  43. unsigned long __unused1;
  44. unsigned long __unused2;
  45. unsigned long __unused3;
  46. unsigned long __unused4;
  47. };
  48. #endif /* _PARISC_SHMBUF_H */