/netbsd/lib/libkvm/ |
H A D | kvm.c | 255 kd->pmfd = -1; in _kvm_open() 353 if ((kd->pmfd = open(mf, flag | O_CLOEXEC, 0)) < 0) { in _kvm_open() 357 if (fstat(kd->pmfd, &st) < 0) { in _kvm_open() 401 MAP_FILE|MAP_PRIVATE, kd->pmfd, 0); in _kvm_open() 541 sz = Pread(kd, kd->pmfd, &cpu_hdr, sizeof(cpu_hdr), dump_off); in kvm_dump_mkheader() 569 sz = Pread(kd, kd->pmfd, kd->cpu_data, cpu_hdr.c_size, in kvm_dump_mkheader() 582 if (Lseek(kd, kd->pmfd, kd->dump_off, SEEK_SET) == -1) { in kvm_dump_mkheader() 758 if (kd->pmfd >= 0) in kvm_close() 759 error |= close(kd->pmfd); in kvm_close() 849 if (pwrite(kd->pmfd, kd->iobuf, dsize, doff) == -1) { in kvm_dump_inval() [all …]
|
H A D | kvm_m68k_cmn.c | 217 if (_kvm_pread(kd, kd->pmfd, &ste, sizeof(ste), in vatop_030() 232 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in vatop_030() 279 if (_kvm_pread(kd, kd->pmfd, &ste, sizeof(ste), in vatop_040() 297 if (_kvm_pread(kd, kd->pmfd, &ste, sizeof(ste), in vatop_040() 312 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in vatop_040()
|
H A D | kvm_x86_64.c | 116 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop() 130 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop() 149 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop() 168 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), in _kvm_kvatop()
|
H A D | kvm_alpha.c | 100 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop() 113 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop() 126 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop()
|
H A D | kvm_sparc64.c | 172 if (_kvm_pread(kd, kd->pmfd, &pdir, sizeof(pdir), in _kvm_kvatop() 184 if (_kvm_pread(kd, kd->pmfd, &ptbl, sizeof(ptbl), in _kvm_kvatop() 196 if (_kvm_pread(kd, kd->pmfd, &data, sizeof(data), in _kvm_kvatop()
|
H A D | kvm_i386pae.c | 87 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop_i386pae() 110 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), in _kvm_kvatop_i386pae()
|
H A D | kvm_hppa.c | 125 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop() 139 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), in _kvm_kvatop()
|
H A D | kvm_arm.c | 110 if (_kvm_pread(kd, kd->pmfd, (void *) &pde, sizeof(pd_entry_t), in _kvm_kvatop() 138 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pt_entry_t), in _kvm_kvatop()
|
H A D | kvm_i386.c | 152 if (_kvm_pread(kd, kd->pmfd, (void *)&pde, sizeof(pde), in _kvm_kvatop_i386() 174 if (_kvm_pread(kd, kd->pmfd, (void *) &pte, sizeof(pte), in _kvm_kvatop_i386()
|
H A D | kvm_powerpc.c | 233 if (_kvm_pread(kd, kd->pmfd, (void *) &pteg, sizeof(pteg), in _kvm_match_sr() 251 if (_kvm_pread(kd, kd->pmfd, (void *) &pteg, sizeof(pteg), in _kvm_match_sr()
|
H A D | kvm_vax.c | 88 if (fstat(kd->pmfd, &st) < 0) in _kvm_initvtop()
|
H A D | kvm_private.h | 47 int pmfd; /* physical memory file (or crash dump) */ member
|
H A D | kvm_mips.c | 181 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop()
|
H A D | kvm_aarch64.c | 136 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), in _kvm_kvatop()
|
H A D | kvm_sparc.c | 261 if (_kvm_pread(kd, kd->pmfd, &pte, sizeof(pte), foff) != sizeof(pte)) { in _kvm_kvatop4m()
|
H A D | kvm_proc.c | 266 if (_kvm_pread(kd, kd->pmfd, kd->swapspc, (size_t)kd->nbpg, in _kvm_ureadm()
|