Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_map.h
Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Lines | struct vmspace { | ||||
struct shmmap_state *vm_shm; /* SYS5 shared memory private data XXX */ | struct shmmap_state *vm_shm; /* SYS5 shared memory private data XXX */ | ||||
segsz_t vm_swrss; /* resident set size before last swap */ | segsz_t vm_swrss; /* resident set size before last swap */ | ||||
segsz_t vm_tsize; /* text size (pages) XXX */ | segsz_t vm_tsize; /* text size (pages) XXX */ | ||||
segsz_t vm_dsize; /* data size (pages) XXX */ | segsz_t vm_dsize; /* data size (pages) XXX */ | ||||
segsz_t vm_ssize; /* stack size (pages) */ | segsz_t vm_ssize; /* stack size (pages) */ | ||||
caddr_t vm_taddr; /* (c) user virtual address of text */ | caddr_t vm_taddr; /* (c) user virtual address of text */ | ||||
caddr_t vm_daddr; /* (c) user virtual address of data */ | caddr_t vm_daddr; /* (c) user virtual address of data */ | ||||
caddr_t vm_maxsaddr; /* user VA at max stack growth */ | caddr_t vm_maxsaddr; /* user VA at max stack growth */ | ||||
vm_size_t vm_stkgap; /* stack gap size in bytes */ | |||||
kib: We have vm_size_t type. Also please note in the comment that the gap size is in bytes. | |||||
u_int vm_refcnt; /* number of references */ | u_int vm_refcnt; /* number of references */ | ||||
/* | /* | ||||
* Keep the PMAP last, so that CPU-specific variations of that | * Keep the PMAP last, so that CPU-specific variations of that | ||||
* structure on a single architecture don't result in offset | * structure on a single architecture don't result in offset | ||||
* variations of the machine-independent fields in the vmspace. | * variations of the machine-independent fields in the vmspace. | ||||
*/ | */ | ||||
struct pmap vm_pmap; /* private physical map */ | struct pmap vm_pmap; /* private physical map */ | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |
We have vm_size_t type. Also please note in the comment that the gap size is in bytes.