Lines Matching refs:mib
55 int mib[3], error; in get_pid_by_tid() local
62 mib[0] = CTL_KERN; in get_pid_by_tid()
63 mib[1] = KERN_PROC; in get_pid_by_tid()
64 mib[2] = KERN_PROC_ALL; in get_pid_by_tid()
66 error = sysctl(mib, 3, NULL, &len, NULL, 0); in get_pid_by_tid()
74 error = sysctl(mib, 3, buf, &len, NULL, 0); in get_pid_by_tid()
95 int mib[4], error, ret; in map_create_list() local
102 mib[0] = CTL_KERN; in map_create_list()
103 mib[1] = KERN_PROC; in map_create_list()
104 mib[2] = KERN_PROC_VMMAP; in map_create_list()
105 mib[3] = pid; in map_create_list()
107 error = sysctl(mib, 4, NULL, &len, NULL, 0); in map_create_list()
111 mib[3] = get_pid_by_tid(pid); in map_create_list()
112 if (mib[3] != -1) in map_create_list()
113 error = sysctl(mib, 4, NULL, &len, NULL, 0); in map_create_list()
125 error = sysctl(mib, 4, buf, &len, NULL, 0); in map_create_list()