freebsd-skq/lib/libkvm
Robert Watson ae3a37ad44 Adapt libkvm_getswapinfo() to make use of recently committed vm and swap
sysctls exporting swap information.  When running on a live kernel,
the sysctl's will now be used instead of kvm_read, allowing consumers of
this interface to run without privilege (setgid kmem).  Retain the
ability to run on coredumps, or on a kernel using kmem if explicitly
pointed at one.

A side effect of this change is that kvm_getswapinfo() is faster now in
the general case. If the SWIF_DUMP_TREE flag is given (pstat -ss does
this), the radix tree walker, which still uses kvm_read in any case, is
invoked, and therefore does require privilege.

Submitted by:	Thomas Moestl <tmoestl@gmx.net>
Reviewed by:	freebsd-audit
2001-02-23 18:49:16 +00:00
..
kvm_alpha.c
kvm_amd64.c
kvm_file.c
kvm_geterr.3
kvm_getfiles.3 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
kvm_getloadavg.3
kvm_getloadavg.c
kvm_getprocs.3 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
kvm_getswapinfo.3 mdoc(7) police: split punctuation characters + misc fixes. 2001-02-01 16:38:02 +00:00
kvm_getswapinfo.c Adapt libkvm_getswapinfo() to make use of recently committed vm and swap 2001-02-23 18:49:16 +00:00
kvm_i386.c
kvm_nlist.3
kvm_open.3
kvm_private.h
kvm_proc.c Catch up to new priority interface. 2001-02-12 00:21:38 +00:00
kvm_read.3
kvm_sparc.c
kvm.3
kvm.c
kvm.h
Makefile