Lines Matching refs:kv
58 struct kinfo_proc *kv; in get_pid_by_tid() local
80 for (i = 0, kv = (struct kinfo_proc *)buf; i < len / sizeof(*kv); in get_pid_by_tid()
81 i++, kv++) { in get_pid_by_tid()
82 if (kv->ki_tid == tid) { in get_pid_by_tid()
83 pid = kv->ki_pid; in get_pid_by_tid()
98 struct kinfo_vmentry *kv; in map_create_list() local
132 for (bp = buf, eb = buf + len; bp < eb; bp += kv->kve_structsize) in map_create_list()
134 kv = (struct kinfo_vmentry *)(uintptr_t)bp; in map_create_list()
135 if (kv->kve_type != KVME_TYPE_VNODE) in map_create_list()
142 cur_map->start = kv->kve_start; in map_create_list()
143 cur_map->end = kv->kv_end; in map_create_list()
144 cur_map->offset = kv->kve_offset; in map_create_list()
145 cur_map->path = strdup(kv->kve_path); in map_create_list()