/freebsd-13-stable/sbin/dmesg/ |
H A D | dmesg.c | 81 char *bp, *ep, *memf, *nextp, *nlistf, *p, *q, *visbp; local 91 memf = nlistf = NULL; 101 memf = optarg; 114 if (memf == NULL) { 137 kd = kvm_open(nlistf, memf, NULL, O_RDONLY, "dmesg");
|
/freebsd-13-stable/usr.sbin/trpt/ |
H A D | trpt.c | 94 static int aflag, kflag, memf, follow, sflag; variable 159 if ((memf = open(core, O_RDONLY)) < 0) 165 (void)klseek(memf, (off_t)nl[N_TCP_DEBX].n_value, L_SET); 166 if (read(memf, (char *)&tcp_debx, sizeof(tcp_debx)) != 169 (void)klseek(memf, (off_t)nl[N_TCP_DEBUG].n_value, L_SET); 170 if (read(memf, (char *)tcp_debug, sizeof(tcp_debug)) != 289 (void)klseek(memf, (off_t)nl[N_TCP_DEBX].n_value, L_SET); 290 if (read(memf, (char *)&tcp_debx, sizeof(tcp_debx)) != 294 (void)klseek(memf, (off_t)nl[N_TCP_DEBUG].n_value, L_SET); 295 if (read(memf, (cha [all...] |
/freebsd-13-stable/usr.bin/fstat/ |
H A D | fuser.c | 169 char *ep, *nlistf, *memf; local 175 memf = NULL; 192 memf = optarg; 243 if (memf != NULL) 244 procstat = procstat_open_kvm(nlistf, memf);
|
H A D | fstat.c | 82 static char *memf, *nlistf; variable 114 nlistf = memf = NULL; 121 memf = optarg; 177 if (memf != NULL) 178 procstat = procstat_open_kvm(nlistf, memf);
|
/freebsd-13-stable/usr.bin/bluetooth/btsockstat/ |
H A D | btsockstat.c | 72 static kvm_t * kopen (char const *memf); 113 char *memf = NULL; local 122 memf = optarg; 160 if (memf != NULL) 164 kvmd = kopen(memf); 584 kopen(char const *memf) argument 589 kvmd = kvm_openfiles(NULL, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-13-stable/tools/tools/umastat/ |
H A D | umastat.c | 289 char *memf, *nlistf; local 293 memf = nlistf = NULL; 297 memf = optarg; 311 if (nlistf != NULL && memf == NULL) 314 kvm = kvm_openfiles(nlistf, memf, NULL, 0, errbuf);
|
/freebsd-13-stable/usr.bin/procstat/ |
H A D | procstat.c | 292 char *dummy, *nlistf, *memf; local 300 memf = nlistf = NULL; 373 memf = optarg; 456 if (memf != NULL) 457 prstat = procstat_open_kvm(nlistf, memf);
|
/freebsd-13-stable/usr.bin/w/ |
H A D | w.c | 144 const char *memf, *nlistf, *p, *save_p; local 167 memf = _PATH_DEVNULL; 182 memf = optarg; 205 if ((kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf)) == NULL)
|
/freebsd-13-stable/usr.sbin/pstat/ |
H A D | pstat.c | 105 static char *memf; variable 161 memf = optarg; 188 if (memf != NULL) { 189 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf);
|
/freebsd-13-stable/usr.bin/netstat/ |
H A D | main.c | 202 static char *nlistf = NULL, *memf = NULL; variable 347 memf = optarg; 434 memf = *argv; 443 live = (nlistf == NULL && memf == NULL); 708 kvmd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-13-stable/usr.sbin/iostat/ |
H A D | iostat.c | 184 char *memf = NULL, *nlistf = NULL; local 226 memf = optarg; 273 if (nlistf != NULL || memf != NULL) { 274 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-13-stable/lib/libprocstat/ |
H A D | libprocstat.h | 230 struct procstat *procstat_open_kvm(const char *nlistf, const char *memf);
|
H A D | libprocstat.c | 217 procstat_open_kvm(const char *nlistf, const char *memf) argument 228 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, buf);
|
/freebsd-13-stable/usr.bin/vmstat/ |
H A D | vmstat.c | 216 char *bp, *buf, *memf, *nlistf; local 223 memf = nlistf = NULL; 256 memf = optarg; 302 if (memf != NULL) { 303 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-13-stable/bin/ps/ |
H A D | ps.c | 185 const char *nlistf, *memf, *str; local 241 memf = _PATH_DEVNULL; 326 memf = optarg; 469 kd = kvm_openfiles(nlistf, memf, NULL, O_RDONLY, errbuf);
|
/freebsd-13-stable/contrib/ipfilter/tools/ |
H A D | ipfstat.c | 200 char *memf = NULL; local 238 memf = optarg; 269 if (kern != NULL || memf != NULL) { 277 if (openkmem(kern, memf) == -1)
|