1
0

shm.h 658 B

123456789101112131415161718192021222324252627282930
  1. #define SHMLBA 4096
  2. struct shmid_ds {
  3. struct ipc_perm shm_perm;
  4. unsigned long __shm_atime_hi;
  5. unsigned long __shm_atime_lo;
  6. unsigned long __shm_dtime_hi;
  7. unsigned long __shm_dtime_lo;
  8. unsigned long __shm_ctime_hi;
  9. unsigned long __shm_ctime_lo;
  10. unsigned long __pad1;
  11. size_t shm_segsz;
  12. pid_t shm_cpid;
  13. pid_t shm_lpid;
  14. unsigned long shm_nattch;
  15. unsigned long __pad2;
  16. time_t shm_atime;
  17. time_t shm_dtime;
  18. time_t shm_ctime;
  19. };
  20. struct shminfo {
  21. unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4];
  22. };
  23. struct shm_info {
  24. int __used_ids;
  25. unsigned long shm_tot, shm_rss, shm_swp;
  26. unsigned long __swap_attempts, __swap_successes;
  27. };