/freebsd-current/tools/test/stress2/misc/ |
H A D | maxproc.sh | 125 char *nlistf, *memf; 127 nlistf = memf = NULL; 131 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf)) == NULL) 132 errx(1, "kvm_openfile(%s, %s): %s", nlistf, memf, buf);
|
/freebsd-current/sbin/dmesg/ |
H A D | dmesg.c | 67 char *bp, *ep, *memf, *nextp, *nlistf, *p, *q, *visbp; local 77 memf = nlistf = NULL; 87 memf = optarg; 100 if (memf == NULL) { 123 kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg");
|
/freebsd-current/usr.bin/fstat/ |
H A D | fuser.c | 167 char *ep, *nlistf, *memf; local 173 memf = NULL; 190 memf = optarg; 241 if (memf != NULL) 242 procstat = procstat_open_kvm(nlistf, memf);
|
H A D | fstat.c | 79 static char *memf, *nlistf; variable 111 nlistf = memf = NULL; 118 memf = optarg; 174 if (memf != NULL) 175 procstat = procstat_open_kvm(nlistf, memf);
|
/freebsd-current/usr.bin/bluetooth/btsockstat/ |
H A D | btsockstat.c | 71 static kvm_t * kopen (char const *memf); 112 char *memf = NULL; local 121 memf = optarg; 159 if (memf != NULL) 163 kvmd = kopen(memf); 583 kopen(char const *memf) argument 588 kvmd = kvm_openfiles(NULL, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-current/tools/tools/umastat/ |
H A D | umastat.c | 287 char *memf, *nlistf; local 291 memf = nlistf = NULL; 295 memf = optarg; 309 if (nlistf != NULL && memf == NULL) 312 kvm = kvm_openfiles(nlistf, memf, NULL, 0, errbuf);
|
/freebsd-current/usr.bin/procstat/ |
H A D | procstat.c | 290 char *dummy, *nlistf, *memf; local 298 memf = nlistf = NULL; 371 memf = optarg; 455 if (memf != NULL) 456 prstat = procstat_open_kvm(nlistf, memf);
|
/freebsd-current/usr.sbin/pstat/ |
H A D | pstat.c | 91 static char *memf; variable 147 memf = optarg; 174 if (memf != NULL) { 175 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf);
|
/freebsd-current/usr.bin/netstat/ |
H A D | main.c | 195 static char *nlistf = NULL, *memf = NULL; variable 355 memf = optarg; 442 memf = *argv; 461 live = (nlistf == NULL && memf == NULL); 726 kvmd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-current/usr.sbin/iostat/ |
H A D | iostat.c | 183 char *memf = NULL, *nlistf = NULL; local 225 memf = optarg; 269 if (nlistf != NULL || memf != NULL) { 270 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-current/usr.bin/w/ |
H A D | w.c | 130 const char *memf, *nlistf, *p, *save_p; local 153 memf = _PATH_DEVNULL; 168 memf = optarg; 191 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) == NULL)
|
/freebsd-current/lib/libprocstat/ |
H A D | libprocstat.h | 259 struct procstat *procstat_open_kvm(const char *nlistf, const char *memf);
|
H A D | libprocstat.c | 209 procstat_open_kvm(const char *nlistf, const char *memf) argument 220 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf);
|
/freebsd-current/usr.bin/vmstat/ |
H A D | vmstat.c | 201 char *bp, *buf, *memf, *nlistf; local 208 memf = nlistf = NULL; 242 memf = optarg; 290 if (memf != NULL) { 291 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-current/bin/ps/ |
H A D | ps.c | 170 const char *nlistf, *memf, *str; local 228 memf = _PATH_DEVNULL; 327 memf = optarg; 470 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-current/sbin/ipf/ipfstat/ |
H A D | ipfstat.c | 192 char *memf = NULL; local 230 memf = optarg; 261 if (kern != NULL || memf != NULL) { 269 if (openkmem(kern, memf) == -1)
|