Lines Matching refs:mib
62 int mib[4]; in uv_exepath() local
78 mib[0] = CTL_KERN; in uv_exepath()
79 mib[1] = KERN_PROC_ARGS; in uv_exepath()
80 mib[2] = mypid; in uv_exepath()
81 mib[3] = KERN_PROC_ARGV; in uv_exepath()
82 if (sysctl(mib, ARRAY_SIZE(mib), argsbuf, &argsbuf_size, NULL, 0) == 0) { in uv_exepath()
151 int mib[6]; in uv_resident_set_memory() local
153 mib[0] = CTL_KERN; in uv_resident_set_memory()
154 mib[1] = KERN_PROC; in uv_resident_set_memory()
155 mib[2] = KERN_PROC_PID; in uv_resident_set_memory()
156 mib[3] = getpid(); in uv_resident_set_memory()
157 mib[4] = sizeof(struct kinfo_proc); in uv_resident_set_memory()
158 mib[5] = 1; in uv_resident_set_memory()
160 if (sysctl(mib, ARRAY_SIZE(mib), &kinfo, &size, NULL, 0) < 0) in uv_resident_set_memory()