Lines Matching +full:5 +full:kd
159 static int readvar(kvm_t *kd, const char *name, int nlid, void *ptr,
188 kvm_t *kd = NULL; in main() local
270 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
272 if (kd == NULL) in main()
275 if (kvm_nlist(kd, namelist) == -1) in main()
276 errx(1, "kvm_nlist: %s", kvm_geterr(kd)); in main()
284 if (devstat_checkversion(kd) < 0) in main()
297 if ((num_devices = devstat_getnumdevs(kd)) < 0) in main()
308 maxshowdevs = 5; in main()
310 maxshowdevs = 5; in main()
334 if (devstat_getdevs(kd, &cur) == -1) in main()
477 if ((readvar(kd, "kern.tty_nin", X_TTY_NIN, &cur.tk_nin, in main()
479 || (readvar(kd, "kern.tty_nout", X_TTY_NOUT, in main()
487 if (kd == NULL) { in main()
488 if (readvar(kd, "kern.cp_time", 0, in main()
492 if (kvm_getcptime(kd, cur.cp_time) < 0) { in main()
494 kvm_geterr(kd)); in main()
522 switch (devstat_getdevs(kd, &cur)) { in main()
931 printf("%4.0Lf%4.0Lf%5.*Lf ", in devstats()
937 printf("%4" PRIu64 "%4" PRIu64 "%5.*Lf ", in devstats()
944 printf("%4.*Lf %5.0Lf %5.*Lf ", in devstats()
955 printf("%4.*Lf %5" PRIu64 " %5.*Lf ", in devstats()
998 readvar(kvm_t *kd, const char *name, int nlid, void *ptr, size_t len) in readvar() argument
1000 if (kd != NULL) { in readvar()
1003 nbytes = kvm_read(kd, namelist[nlid].n_value, ptr, len); in readvar()
1007 kvm_geterr(kd)); in readvar()