1
0

shm.h 639 B

1234567891011121314151617181920212223242526272829
  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_dtime_lo;
  7. unsigned long __shm_ctime_lo;
  8. pid_t shm_cpid;
  9. pid_t shm_lpid;
  10. unsigned long shm_nattch;
  11. unsigned short __shm_atime_hi;
  12. unsigned short __shm_dtime_hi;
  13. unsigned short __shm_ctime_hi;
  14. unsigned short __pad1;
  15. time_t shm_atime;
  16. time_t shm_dtime;
  17. time_t shm_ctime;
  18. };
  19. struct shminfo {
  20. unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4];
  21. };
  22. struct shm_info {
  23. int __used_ids;
  24. unsigned long shm_tot, shm_rss, shm_swp;
  25. unsigned long __swap_attempts, __swap_successes;
  26. };