libkvm - Adjust kvm_getswapinfo() to use the new vm.swap_info_array sysctl
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Aug 2010 00:44:10 +0000 (17:44 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 18 Aug 2010 00:44:10 +0000 (17:44 -0700)
commit4aad631348e9217e74f499c6369ed2d99f2b55a3
treeddc14d71af8de640c3904298c1a3f8fc47913cdb
parent099f3e5ecdf0a80059f62c41b82e64a67a681de6
libkvm - Adjust kvm_getswapinfo() to use the new vm.swap_info_array sysctl

* kvm_getswapinfo() attempts to use the new sysctl and if it fails, or
  if the kvm is operating on a kernel core file, reverts to the namelist.
lib/libkvm/kvm_getswapinfo.c