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