Lines Matching refs:pmfd
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()
437 sz = Pread(kd, kd->pmfd, &kcore_hdr, sizeof(kcore_hdr), (off_t)0); in _kvm_get_header()
467 sz = Pread(kd, kd->pmfd, &cpu_hdr, sizeof(cpu_hdr), (off_t)offset); in _kvm_get_header()
482 sz = Pread(kd, kd->pmfd, kd->cpu_data, cpu_hdr.c_size, (off_t)offset); in _kvm_get_header()
490 sz = Pread(kd, kd->pmfd, &mem_hdr, sizeof(mem_hdr), (off_t)offset); in _kvm_get_header()
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()
898 cc = _kvm_pread(kd, kd->pmfd, cp, (size_t)cc, foff); in kvm_read()