Lines Matching refs:kvm
36 #include <kvm.h>
231 kread(kvm_t *kvm, void *kvm_pointer, void *address, size_t size,
236 ret = kvm_read(kvm, (unsigned long)kvm_pointer + offset, address,
246 kread_string(kvm_t *kvm, const void *kvm_pointer, char *buffer, int buflen)
252 ret = kvm_read(kvm, __DECONST(unsigned long, kvm_pointer) +
267 kread_symbol(kvm_t *kvm, int index, void *address, size_t size,
272 ret = kvm_read(kvm, namelist[index].n_value + offset, address, size);
290 kvm_t *kvm;
292 kvm = (kvm_t *)kvm_handle;
296 if (kvm_nlist(kvm, namelist) != 0) {
307 ret = kread_symbol(kvm, X_MP_MAXCPUS, &mp_maxcpus,
314 ret = kread_symbol(kvm, X_KMEMSTATISTICS, &kmemstatistics,
328 ret = kread(kvm, typep, &type, sizeof(type), 0);
335 ret = kread_string(kvm, (void *)type.ks_shortdesc, name,
349 ret = kread(kvm, mtip->mti_stats, mts, mp_maxcpus *