shm.h 692 字节
Newer Older
R
rofl0r 已提交
1 2
#define SHMLBA 4096

3
struct shmid_ds {
R
rofl0r 已提交
4 5 6 7 8 9 10 11
	struct ipc_perm shm_perm;
	size_t shm_segsz;
	time_t shm_atime;
	time_t shm_dtime;
	time_t shm_ctime;
	pid_t shm_cpid;
	pid_t shm_lpid;
	unsigned long shm_nattch;
R
rofl0r 已提交
12 13 14
	unsigned long __pad0;
	unsigned long long __pad1;
	unsigned long long __pad2;
R
rofl0r 已提交
15 16 17
};

struct shminfo {
R
rofl0r 已提交
18 19 20
	unsigned long shmmax, __pad0, shmmin, __pad1, shmmni, __pad2,
	              shmseg, __pad3, shmall, __pad4;
	unsigned long long __unused[4];
R
rofl0r 已提交
21 22 23 24
};

struct shm_info {
	int __used_ids;
R
rofl0r 已提交
25 26 27 28 29 30 31 32
	int __pad_ids;
	unsigned long shm_tot, __pad0, shm_rss, __pad1, shm_swp, __pad2;
	unsigned long __swap_attempts, __pad3, __swap_successes, __pad4;
}
#ifdef __GNUC__
__attribute__((__aligned__(8)))
#endif
;