shm.h 473 B

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