Searched refs:kinfo (Results 1 – 3 of 3) sorted by relevance
/libuv/src/unix/ |
H A D | freebsd.c | 143 struct kinfo_proc kinfo; in uv_resident_set_memory() local 153 kinfo_size = sizeof(kinfo); in uv_resident_set_memory() 155 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &kinfo_size, NULL, 0)) in uv_resident_set_memory() 161 *rss = kinfo.kp_vm_rssize * page_size; in uv_resident_set_memory() 163 *rss = kinfo.ki_rssize * page_size; in uv_resident_set_memory()
|
H A D | netbsd.c | 141 struct kinfo_proc2 *kinfo = NULL; in uv_resident_set_memory() local 154 kinfo = kvm_getproc2(kd, KERN_PROC_PID, pid, max_size, &nprocs); in uv_resident_set_memory() 155 if (kinfo == NULL) goto error; in uv_resident_set_memory() 157 *rss = kinfo->p_vm_rssize * page_size; in uv_resident_set_memory()
|
H A D | openbsd.c | 148 struct kinfo_proc kinfo; in uv_resident_set_memory() local 160 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &size, NULL, 0) < 0) in uv_resident_set_memory() 163 *rss = kinfo.p_vm_rssize * page_size; in uv_resident_set_memory()
|
Completed in 6 milliseconds