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