freebsd-skq/lib/libkvm
rwatson 78bbdcc2c4 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 Use macro API to <sys/queue.h> 2000-12-30 21:52:34 +00:00
kvm_geterr.3 Avoid use of direct troff requests in mdoc(7) manual pages. 2000-11-10 17:46:15 +00:00
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 Remove obsolete reference to /var/db/kvm_kernel.db 2000-05-07 02:16:43 +00:00
kvm_open.3 Prepare for mdoc(7)NG. 2001-01-16 09:08:22 +00:00
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 Limit the amount of data copied to the error buffer to _POSIX2_LINE_MAX. 2000-08-04 09:23:07 +00:00
kvm.h Change the proc information returned from the kernel so that it 2000-12-12 07:25:57 +00:00
Makefile