Lines Matching refs:kvm
41 #include <kvm.h>
243 kread(kvm_t *kvm, void *kvm_pointer, void *address, size_t size,
248 ret = kvm_read(kvm, (unsigned long)kvm_pointer + offset, address,
258 kread_string(kvm_t *kvm, const void *kvm_pointer, char *buffer, int buflen)
264 ret = kvm_read(kvm, (unsigned long)kvm_pointer + i,
279 kread_symbol(kvm_t *kvm, int index, void *address, size_t size,
284 ret = kvm_read(kvm, namelist[index].n_value + offset, address, size);
309 kvm_t *kvm;
311 kvm = (kvm_t *)kvm_handle;
313 if (kvm_nlist(kvm, namelist) != 0) {
322 ret = kread_symbol(kvm, X_MP_MAXID, &mp_maxid, sizeof(mp_maxid), 0);
327 ret = kread_symbol(kvm, X_UMA_KEGS, &uma_kegs, sizeof(uma_kegs), 0);
338 ret = kread_symbol(kvm, X_ALL_CPUS, &all_cpus, cpusetsize, 0);
350 ret = kread(kvm, kzp, &kz, sizeof(kz), 0);
359 ret = kread(kvm, uzp, &uz, sizeof(uz), 0);
366 ret = kread(kvm, uzp, ucp_array,
375 ret = kread_string(kvm, uz.uz_name, name,
415 ret = kread(kvm, ucp->uc_allocbucket,
426 ret = kread(kvm, ucp->uc_freebucket,
453 ret = kread(kvm, ubp, &ub, sizeof(ub), 0);