Lines Matching +full:5 +full:kd
92 static kvm_t *kd;
175 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf);
176 if (kd == NULL)
178 if ((ret = kvm_nlist(kd, nl)) != 0) {
180 errx(1, "kvm_nlist: %s", kvm_geterr(kd));
231 if (kvm_read(kd, nl[NL_TTY_LIST].n_value, &tl, sizeof tl) != sizeof tl)
232 errx(1, "kvm_read(): %s", kvm_geterr(kd));
235 if (kvm_read(kd, (u_long)tp, &tty, sizeof tty) != sizeof tty)
236 errx(1, "kvm_read(): %s", kvm_geterr(kd));
280 if (kd != NULL)
339 printf("%5zu %4zu %4zu %4zu %5zu %4zu %4zu %5u %5d %5d ",
366 if (kd != NULL) {
367 if (kvm_read(kd, nl[NL_MAXFILES].n_value,
369 kvm_read(kd, nl[NL_NFILES].n_value,
371 errx(1, "kvm_read(): %s", kvm_geterr(kd));
425 if (kd != NULL)
478 char usedbuf[5];
479 char availbuf[5];
480 char sizebuf[5];
546 n = kvm_getswapinfo(kd, kswap, sizeof kswap / sizeof kswap[0],
593 if (kd != NULL)