• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define SHMLBA 4096
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_dtime_lo;
8 	unsigned long __shm_ctime_lo;
9 	pid_t shm_cpid;
10 	pid_t shm_lpid;
11 	unsigned long shm_nattch;
12 	unsigned short __shm_atime_hi;
13 	unsigned short __shm_dtime_hi;
14 	unsigned short __shm_ctime_hi;
15 	unsigned short __pad1;
16 	time_t shm_atime;
17 	time_t shm_dtime;
18 	time_t shm_ctime;
19 };
20 
21 struct shminfo {
22 	unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4];
23 };
24 
25 struct shm_info {
26 	int __used_ids;
27 	unsigned long shm_tot, shm_rss, shm_swp;
28 	unsigned long __swap_attempts, __swap_successes;
29 };
30