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