Searched refs:vmfd (Results 1 – 2 of 2) sorted by relevance
/freebsd/lib/libkvm/ |
H A D | kvm.c | 119 kd->vmfd = -1; in _kvm_open() 161 kd->vmfd = open(_PATH_DEVNULL, O_RDONLY | O_CLOEXEC); in _kvm_open() 164 if ((kd->vmfd = open(_PATH_KMEM, flag | O_CLOEXEC)) < in _kvm_open() 285 if (kd->vmfd >= 0) in kvm_close() 286 error |= close(kd->vmfd); in kvm_close() 380 if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) { in kvm_read2() 385 cr = read(kd->vmfd, buf, len); in kvm_read2() 445 if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) { in kvm_write() 449 cc = write(kd->vmfd, buf, len); in kvm_write()
|
H A D | kvm_private.h | 62 #define ISALIVE(kd) ((kd)->vmfd >= 0) 64 int vmfd; /* virtual memory file (-1 if crashdump) */ member
|