Home
last modified time | relevance | path

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

/freebsd-12.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-12.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-12.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-12.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.c78 static char *memf, *nlistf; variable
110 nlistf = memf = NULL; in do_fstat()
117 memf = optarg; in do_fstat()
170 if (memf != NULL) in do_fstat()
171 procstat = procstat_open_kvm(nlistf, memf); in do_fstat()
/freebsd-12.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-12.1/usr.bin/procstat/
H A Dprocstat.c246 char *nlistf, *memf; in main() local
252 memf = nlistf = NULL; in main()
322 memf = optarg; in main()
402 if (memf != NULL) in main()
403 prstat = procstat_open_kvm(nlistf, memf); in main()
/freebsd-12.1/usr.bin/netstat/
H A Dmain.c202 static char *nlistf = NULL, *memf = NULL; variable
337 memf = optarg; in main()
418 memf = *argv; in main()
427 live = (nlistf == NULL && memf == NULL); in main()
673 kvmd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in kvmd_init()
/freebsd-12.1/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-12.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-12.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-12.1/usr.bin/nfsstat/
H A Dnfsstat.c154 char *memf, *nlistf; in main() local
161 memf = nlistf = NULL; in main()
172 memf = optarg; in main()
249 memf = *argv; in main()
/freebsd-12.1/usr.bin/vmstat/
H A Dvmstat.c215 char *bp, *buf, *memf, *nlistf; in main() local
222 memf = nlistf = NULL; in main()
255 memf = optarg; in main()
301 if (memf != NULL) { in main()
302 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf); in main()
/freebsd-12.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-12.1/lib/libprocstat/
H A Dlibprocstat.h229 struct procstat *procstat_open_kvm(const char *nlistf, const char *memf);
H A Dlibprocstat.c216 procstat_open_kvm(const char *nlistf, const char *memf) in procstat_open_kvm() argument
227 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf); in procstat_open_kvm()
/freebsd-12.1/contrib/ipfilter/tools/
H A Dipfstat.c195 char *memf = NULL; local
233 memf = optarg;
264 if (kern != NULL || memf != NULL) {
272 if (openkmem(kern, memf) == -1)