Home
last modified time | relevance | path

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

/freebsd/sbin/dmesg/
H A Ddmesg.c67 char *bp, *ep, *memf, *nextp, *nlistf, *p, *q, *visbp; in main() local
77 memf = nlistf = NULL; in main()
87 memf = optarg; in main()
100 if (memf == NULL) { in main()
123 kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg"); in main()
/freebsd/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/usr.bin/bluetooth/btsockstat/
H A Dbtsockstat.c71 static kvm_t * kopen (char const *memf);
112 char *memf = NULL; in main() local
121 memf = optarg; in main()
159 if (memf != NULL) in main()
163 kvmd = kopen(memf); in main()
583 kopen(char const *memf) in kopen() argument
588 kvmd = kvm_openfiles(NULL, memf, NULL, O_RDONLY, errbuf); in kopen()
/freebsd/usr.bin/fstat/
H A Dfuser.c167 char *ep, *nlistf, *memf; in do_fuser() local
173 memf = NULL; in do_fuser()
190 memf = optarg; in do_fuser()
241 if (memf != NULL) in do_fuser()
242 procstat = procstat_open_kvm(nlistf, memf); in do_fuser()
H A Dfstat.c79 static char *memf, *nlistf; variable
111 nlistf = memf = NULL; in do_fstat()
118 memf = optarg; in do_fstat()
174 if (memf != NULL) in do_fstat()
175 procstat = procstat_open_kvm(nlistf, memf); in do_fstat()
/freebsd/tools/tools/umastat/
H A Dumastat.c287 char *memf, *nlistf; in main() local
291 memf = nlistf = NULL; in main()
295 memf = optarg; in main()
309 if (nlistf != NULL && memf == NULL) in main()
312 kvm = kvm_openfiles(nlistf, memf, NULL, 0, errbuf); in main()
/freebsd/usr.bin/procstat/
H A Dprocstat.c295 char *dummy, *nlistf, *memf; in main() local
303 memf = nlistf = NULL; in main()
376 memf = optarg; in main()
460 if (memf != NULL) in main()
461 prstat = procstat_open_kvm(nlistf, memf); in main()
/freebsd/usr.bin/netstat/
H A Dmain.c195 static char *nlistf = NULL, *memf = NULL; variable
355 memf = optarg; in main()
443 memf = *argv; in main()
462 live = (nlistf == NULL && memf == NULL); in main()
741 kvmd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in kvmd_init()
/freebsd/usr.sbin/pstat/
H A Dpstat.c91 static char *memf; variable
147 memf = optarg; in main()
174 if (memf != NULL) { in main()
175 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf); in main()
/freebsd/usr.bin/w/
H A Dw.c132 const char *memf, *nlistf, *p, *save_p; in main() local
157 memf = _PATH_DEVNULL; in main()
172 memf = optarg; in main()
195 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) == NULL) in main()
/freebsd/usr.sbin/iostat/
H A Diostat.c183 char *memf = NULL, *nlistf = NULL; in main() local
225 memf = optarg; in main()
269 if (nlistf != NULL || memf != NULL) { in main()
270 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
/freebsd/usr.bin/vmstat/
H A Dvmstat.c201 char *bp, *buf, *memf, *nlistf; in main() local
208 memf = nlistf = NULL; in main()
242 memf = optarg; in main()
291 if (memf != NULL) { in main()
292 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
/freebsd/bin/ps/
H A Dps.c160 const char *nlistf, *memf, *str; in main() local
218 memf = _PATH_DEVNULL; in main()
314 memf = optarg; in main()
457 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
/freebsd/lib/libprocstat/
H A Dlibprocstat.h266 struct procstat *procstat_open_kvm(const char *nlistf, const char *memf);
H A Dlibprocstat.c210 procstat_open_kvm(const char *nlistf, const char *memf) in procstat_open_kvm() argument
221 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf); in procstat_open_kvm()
/freebsd/sbin/ipf/ipfstat/
H A Dipfstat.c192 char *memf = NULL; in main() local
230 memf = optarg; in main()
261 if (kern != NULL || memf != NULL) { in main()
269 if (openkmem(kern, memf) == -1) in main()