Home
last modified time | relevance | path

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

/freebsd-13.1/usr.sbin/trpt/
H A Dtrpt.c94 static int aflag, kflag, memf, follow, sflag; variable
159 if ((memf = open(core, O_RDONLY)) < 0) in main()
165 (void)klseek(memf, (off_t)nl[N_TCP_DEBX].n_value, L_SET); in main()
166 if (read(memf, (char *)&tcp_debx, sizeof(tcp_debx)) != in main()
169 (void)klseek(memf, (off_t)nl[N_TCP_DEBUG].n_value, L_SET); in main()
170 if (read(memf, (char *)tcp_debug, sizeof(tcp_debug)) != in main()
289 (void)klseek(memf, (off_t)nl[N_TCP_DEBX].n_value, L_SET); in dotrace()
290 if (read(memf, (char *)&tcp_debx, sizeof(tcp_debx)) != in dotrace()
294 (void)klseek(memf, (off_t)nl[N_TCP_DEBUG].n_value, L_SET); in dotrace()
295 if (read(memf, (char *)tcp_debug, sizeof(tcp_debug)) != in dotrace()
/freebsd-13.1/sbin/dmesg/
H A Ddmesg.c81 char *bp, *ep, *memf, *nextp, *nlistf, *p, *q, *visbp; in main() local
91 memf = nlistf = NULL; in main()
101 memf = optarg; in main()
114 if (memf == NULL) { in main()
137 kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg"); in main()
/freebsd-13.1/usr.bin/bluetooth/btsockstat/
H A Dbtsockstat.c72 static kvm_t * kopen (char const *memf);
113 char *memf = NULL; in main() local
122 memf = optarg; in main()
160 if (memf != NULL) in main()
164 kvmd = kopen(memf); in main()
584 kopen(char const *memf) in kopen() argument
589 kvmd = kvm_openfiles(NULL, memf, NULL, O_RDONLY, errbuf); in kopen()
/freebsd-13.1/usr.bin/fstat/
H A Dfuser.c169 char *ep, *nlistf, *memf; in do_fuser() local
175 memf = NULL; in do_fuser()
192 memf = optarg; in do_fuser()
243 if (memf != NULL) in do_fuser()
244 procstat = procstat_open_kvm(nlistf, memf); in do_fuser()
H A Dfstat.c82 static char *memf, *nlistf; variable
114 nlistf = memf = NULL; in do_fstat()
121 memf = optarg; in do_fstat()
177 if (memf != NULL) in do_fstat()
178 procstat = procstat_open_kvm(nlistf, memf); in do_fstat()
/freebsd-13.1/tools/tools/umastat/
H A Dumastat.c289 char *memf, *nlistf; in main() local
293 memf = nlistf = NULL; in main()
297 memf = optarg; in main()
311 if (nlistf != NULL && memf == NULL) in main()
314 kvm = kvm_openfiles(nlistf, memf, NULL, 0, errbuf); in main()
/freebsd-13.1/usr.bin/procstat/
H A Dprocstat.c292 char *dummy, *nlistf, *memf; in main() local
300 memf = nlistf = NULL; in main()
373 memf = optarg; in main()
456 if (memf != NULL) in main()
457 prstat = procstat_open_kvm(nlistf, memf); in main()
/freebsd-13.1/usr.bin/netstat/
H A Dmain.c202 static char *nlistf = NULL, *memf = NULL; variable
347 memf = optarg; in main()
434 memf = *argv; in main()
443 live = (nlistf == NULL && memf == NULL); in main()
708 kvmd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in kvmd_init()
/freebsd-13.1/usr.sbin/pstat/
H A Dpstat.c105 static char *memf; variable
161 memf = optarg; in main()
188 if (memf != NULL) { in main()
189 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf); in main()
/freebsd-13.1/usr.bin/w/
H A Dw.c144 const char *memf, *nlistf, *p, *save_p; in main() local
167 memf = _PATH_DEVNULL; in main()
182 memf = optarg; in main()
205 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) == NULL) in main()
/freebsd-13.1/usr.sbin/iostat/
H A Diostat.c184 char *memf = NULL, *nlistf = NULL; in main() local
226 memf = optarg; in main()
273 if (nlistf != NULL || memf != NULL) { in main()
274 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
/freebsd-13.1/usr.bin/vmstat/
H A Dvmstat.c216 char *bp, *buf, *memf, *nlistf; in main() local
223 memf = nlistf = NULL; in main()
256 memf = optarg; in main()
302 if (memf != NULL) { in main()
303 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
/freebsd-13.1/bin/ps/
H A Dps.c185 const char *nlistf, *memf, *str; in main() local
241 memf = _PATH_DEVNULL; in main()
326 memf = optarg; in main()
469 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
/freebsd-13.1/lib/libprocstat/
H A Dlibprocstat.h230 struct procstat *procstat_open_kvm(const char *nlistf, const char *memf);
H A Dlibprocstat.c217 procstat_open_kvm(const char *nlistf, const char *memf) in procstat_open_kvm() argument
228 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf); in procstat_open_kvm()
/freebsd-13.1/sbin/ipf/ipfstat/
H A Dipfstat.c198 char *memf = NULL; in main() local
236 memf = optarg; in main()
267 if (kern != NULL || memf != NULL) { in main()
275 if (openkmem(kern, memf) == -1) in main()