Home
last modified time | relevance | path

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

/freebsd-14.2/sbin/dmesg/
H A Ddmesg.c79 char *bp, *ep, *memf, *nextp, *nlistf, *p, *q, *visbp; in main() local
89 memf = nlistf = NULL; in main()
99 memf = optarg; in main()
112 if (memf == NULL) { in main()
135 kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg"); in main()
/freebsd-14.2/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-14.2/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-14.2/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.c80 static char *memf, *nlistf; variable
112 nlistf = memf = NULL; in do_fstat()
119 memf = optarg; in do_fstat()
175 if (memf != NULL) in do_fstat()
176 procstat = procstat_open_kvm(nlistf, memf); in do_fstat()
/freebsd-14.2/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-14.2/usr.bin/procstat/
H A Dprocstat.c293 char *dummy, *nlistf, *memf; in main() local
301 memf = nlistf = NULL; in main()
374 memf = optarg; in main()
458 if (memf != NULL) in main()
459 prstat = procstat_open_kvm(nlistf, memf); in main()
/freebsd-14.2/usr.bin/netstat/
H A Dmain.c206 static char *nlistf = NULL, *memf = NULL; variable
366 memf = optarg; in main()
453 memf = *argv; in main()
472 live = (nlistf == NULL && memf == NULL); in main()
737 kvmd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in kvmd_init()
/freebsd-14.2/usr.sbin/pstat/
H A Dpstat.c103 static char *memf; variable
159 memf = optarg; in main()
186 if (memf != NULL) { in main()
187 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf); in main()
/freebsd-14.2/usr.bin/w/
H A Dw.c141 const char *memf, *nlistf, *p, *save_p; in main() local
166 memf = _PATH_DEVNULL; in main()
181 memf = optarg; in main()
204 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) == NULL) in main()
/freebsd-14.2/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-14.2/usr.bin/vmstat/
H A Dvmstat.c214 char *bp, *buf, *memf, *nlistf; in main() local
221 memf = nlistf = NULL; in main()
255 memf = optarg; in main()
304 if (memf != NULL) { in main()
305 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
/freebsd-14.2/bin/ps/
H A Dps.c183 const char *nlistf, *memf, *str; in main() local
241 memf = _PATH_DEVNULL; in main()
338 memf = optarg; in main()
481 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
/freebsd-14.2/lib/libprocstat/
H A Dlibprocstat.h263 struct procstat *procstat_open_kvm(const char *nlistf, const char *memf);
H A Dlibprocstat.c212 procstat_open_kvm(const char *nlistf, const char *memf) in procstat_open_kvm() argument
223 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf); in procstat_open_kvm()
/freebsd-14.2/sbin/ipf/ipfstat/
H A Dipfstat.c196 char *memf = NULL; in main() local
234 memf = optarg; in main()
265 if (kern != NULL || memf != NULL) { in main()
273 if (openkmem(kern, memf) == -1) in main()