Lines Matching +full:5 +full:kd
96 kvm_t *kd; in main() local
181 if ((kd = kvm_openfiles(Nflag ? execfile : NULL, in main()
191 count = kvm_nlist(kd, nl); in main()
193 errx(1, "%s", kvm_geterr(kd)); in main()
196 if (kvm_read(kd, nl[0].n_value, &version, sizeof(version)) == -1) in main()
197 errx(1, "%s", kvm_geterr(kd)); in main()
219 if (kvm_read(kd, nl[1].n_value, &entries, sizeof(entries)) in main()
221 errx(1, "%s", kvm_geterr(kd)); in main()
224 if (kvm_read(kd, nl[2].n_value, &index, sizeof(index)) == -1 || in main()
225 kvm_read(kd, nl[3].n_value, &bufptr, in main()
227 kvm_read(kd, bufptr, buf, sizeof(*buf) * entries) == -1 || in main()
228 kvm_read(kd, nl[2].n_value, &index2, sizeof(index2)) == -1) in main()
229 errx(1, "%s", kvm_geterr(kd)); in main()
288 if (kvm_read(kd, (u_long)buf[i].ktr_desc, desc, in main()
290 errx(1, "%s", kvm_geterr(kd)); in main()
304 case '5': case '6': case '7': case '8': case '9': in main()
310 if (kvm_read(kd, (u_long)buf[i].ktr_parms[parm], in main()
338 if (kvm_read(kd, (u_long)buf[i].ktr_file, fbuf, in main()
348 parms[4], parms[5]); in main()
382 if (kvm_read(kd, nl[2].n_value, &index2, in main()
384 errx(1, "%s", kvm_geterr(kd)); in main()
388 if (kvm_read(kd, bufptr, buf, sizeof(*buf) * entries) == -1 || in main()
389 kvm_read(kd, nl[2].n_value, &index2, sizeof(index2)) == -1) in main()
390 errx(1, "%s", kvm_geterr(kd)); in main()