Home
last modified time | relevance | path

Searched refs:pmfd (Results 1 – 14 of 14) sorted by relevance

/freebsd/lib/libkvm/
H A Dkvm.c120 kd->pmfd = -1; in _kvm_open()
140 if ((kd->pmfd = open(mf, flag | O_CLOEXEC, 0)) < 0) { in _kvm_open()
144 if (fstat(kd->pmfd, &st) < 0) { in _kvm_open()
283 if (kd->pmfd >= 0) in kvm_close()
284 error |= close(kd->pmfd); in kvm_close()
402 if (lseek(kd->pmfd, pa, 0) == -1 && errno != 0) { in kvm_read2()
406 cr = read(kd->pmfd, cp, cc); in kvm_read2()
466 if (lseek(kd->pmfd, pa, 0) == -1 && errno != 0) { in kvm_write()
470 cw = write(kd->pmfd, cp, cc); in kvm_write()
H A Dkvm_private.c144 if (pread(kd->pmfd, &minihdr, 8, 0) == 8 && in _kvm_is_minidump()
166 elf = elf_begin(kd->pmfd, ELF_C_READ, NULL); in _kvm_read_core_phdrs()
302 MAP_PRIVATE, kd->pmfd, dump_avail_off); in _kvm_pt_init()
323 rd = pread(kd->pmfd, kd->pt_map, map_len, map_off); in _kvm_pt_init()
376 MAP_PRIVATE, kd->pmfd, kd->pt_sparse_off); in _kvm_pt_init()
380 kd->pt_sparse_size, kd->pmfd, in _kvm_pt_init()
400 if (pread(kd->pmfd, kd->page_map, pmap_size, pmap_off) != exp_len) { in _kvm_pmap_init()
H A Dkvm_amd64.c216 if (pread(kd->pmfd, &pdpe, sizeof(pdpe), ofs) != sizeof(pdpe)) { in _amd64_vatop()
248 if (pread(kd->pmfd, &pde, sizeof(pde), ofs) != sizeof(pde)) { in _amd64_vatop()
280 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) { in _amd64_vatop()
H A Dkvm_powerpc.c100 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs()
127 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs()
H A Dkvm_powerpc64.c102 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs()
129 vm->map = mmap(NULL, vm->mapsz, PROT_READ, MAP_PRIVATE, kd->pmfd, 0); in powerpc_maphdrs()
H A Dkvm_i386.c278 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) { in _i386_vatop()
368 if (pread(kd->pmfd, &pte, sizeof(pte), ofs) != sizeof(pte)) { in _i386_vatop_pae()
H A Dkvm_minidump_amd64.c132 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != in _amd64_minidump_initvtop()
275 if (pread(kd->pmfd, &pt, AMD64_PAGE_SIZE, ofs) != in _amd64_minidump_vatop()
H A Dkvm_private.h63 int pmfd; /* physical memory file (or crashdump) */ member
H A Dkvm_minidump_powerpc64.c81 if (pread(kd->pmfd, hdr, sizeof(*hdr), 0) != sizeof(*hdr)) { in _powerpc64_minidump_initvtop()
H A Dkvm_arm.c213 if (pread(kd->pmfd, &pte, sizeof(pte), pte_off) != sizeof(pte)) { in _arm_kvatop()
H A Dkvm_minidump_arm.c97 if (pread(kd->pmfd, &vmst->hdr, in _arm_minidump_initvtop()
H A Dkvm_minidump_riscv.c92 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != in _riscv_minidump_initvtop()
H A Dkvm_minidump_aarch64.c94 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != in _aarch64_minidump_initvtop()
H A Dkvm_minidump_i386.c100 if (pread(kd->pmfd, &vmst->hdr, sizeof(vmst->hdr), 0) != in _i386_minidump_initvtop()