Searched refs:memf (Results 1 - 16 of 16) sorted by relevance

/freebsd-current/tools/test/stress2/misc/
H A Dmaxproc.sh125 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 Ddmesg.c67 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 Dfuser.c167 char *ep, *nlistf, *memf; local
173 memf = NULL;
190 memf = optarg;
241 if (memf != NULL)
242 procstat = procstat_open_kvm(nlistf, memf);
H A Dfstat.c79 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 Dbtsockstat.c71 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 Dumastat.c287 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 Dprocstat.c290 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 Dpstat.c91 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 Dmain.c195 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 Diostat.c183 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 Dw.c130 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 Dlibprocstat.h259 struct procstat *procstat_open_kvm(const char *nlistf, const char *memf);
H A Dlibprocstat.c209 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 Dvmstat.c201 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 Dps.c170 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 Dipfstat.c192 char *memf = NULL; local
230 memf = optarg;
261 if (kern != NULL || memf != NULL) {
269 if (openkmem(kern, memf) == -1)

Completed in 314 milliseconds