summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_getswapinfo.c
Commit message (Collapse)AuthorAgeFilesLines
* Expand the license referenced indirectly inline.imp2004-07-311-3/+20
|
* Remove various unused variables, prototypes and local variables.phk2003-07-311-25/+0
|
* Disable and lobotomize the kvm image reading swapinfo code, the kernelphk2003-07-311-125/+1
| | | | | | layout is about to change. The sysctl based method still returns correct information.
* Retire the SWIF_DUMP_TREE code, this is in the way for a rework ofphk2003-07-311-190/+0
| | | | the swap_pager layout.
* Unifdef -UDEBUG_SWAPINFO The kernel data structures are about to change.phk2003-07-311-79/+0
|
* Remove all use of the LOG2() macro/inline, undoing some non-optimal cruftdillon2003-01-111-2/+2
| | | | | | | that crept in recently. GCC will optimize the divides and multiplies for us. Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 1 day
* Make struct swblock kernel only, to make vm/swap_pager.h userland includable.phk2003-01-031-1/+1
| | | | | Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h. Adjust #include use in libkvm and pstat(8) to match.
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-101-2/+0
|
* Implement __FBSDID()dillon2001-09-161-10/+2
|
* Change this to support the new way swap device information is exportedtmm2001-06-011-77/+66
| | | | via sysctl, and clean up some style and (size_t != int) issues.
* Compensate for header dethreading.markm2001-05-011-0/+2
|
* Adapt libkvm_getswapinfo() to make use of recently committed vm and swaprwatson2001-02-231-60/+254
| | | | | | | | | | | | | | | | 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
* Add `_PATH_DEVZERO'.obrien2000-12-091-1/+2
| | | | Use _PATH_* where where possible.
* remove unneded sys/ucred.h includealfred2000-11-301-1/+0
|
* Remove unneeded #includejlemon2000-04-161-1/+0
|
* -Wall, which caught a real bug where buflen wasn't being set properly.obrien2000-03-271-8/+4
|
* Use kldsym(2) to lookup symbol values. This avoids the kvm_mkdb jugglingpeter1999-12-271-1/+0
| | | | | | and is module aware. Yes, this means that kvm_nlist(3) will find symbols in loaded modules. The emulation of the nlist struct is pretty crude but seems to work well enough for all the users in the tree that I found.
* Report swapdevices as cdevs rather than bdevs.phk1999-11-291-1/+1
| | | | Remove unused dev2budev() function.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Tidy up references to <sys/rlist.h> and support for the old swap managementpeter1999-05-111-88/+9
| | | | that went away in January.
* From rev. 1.12 of usr.sbin/pstat/pstat.c by phk:dt1999-02-141-3/+6
| | | | | Reflect the fact that we do not swap on the first <dmmax> blocks of a swapdev, to protect disklabels and other such magic stuff.
* Handle case where no swap is configureddillon1999-02-061-3/+10
|
* Removed evil typedef kvm_swap_t and all uses of it (not many).bde1999-01-271-6/+8
| | | | Hoped for by: wollman
* Fix swap radix tree dump formatting ( pstat -ss ), it was printing thedillon1999-01-251-4/+4
| | | | wrong radix for recursive subnodes.
* Add SWIF_DEV_PREFIX flag to add "/dev/..." to device name.dillon1999-01-221-2/+3
|
* Implement kvm_getswapinfo() libkvm function. Will be used bydillon1999-01-221-0/+486
pstat, top, and systat.
OpenPOWER on IntegriCloud