shm.h 473 B

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