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