1
0

shm.h 681 B

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