aboutsummaryrefslogtreecommitdiff
path: root/lib/libkvm
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-08-21 19:22:13 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-08-21 19:22:13 +0000
commitcd11f01e4a0022cf28cc3c8b80f58c2e91b44d27 (patch)
tree24450952d17e34d418d84f2ec97f0ef92dfa0820 /lib/libkvm
parent0e5f2a774841c924c2748a84c762d60783b49f5d (diff)
downloadsrc-cd11f01e4a0022cf28cc3c8b80f58c2e91b44d27.tar.gz
src-cd11f01e4a0022cf28cc3c8b80f58c2e91b44d27.zip
Add a "CACHING" section regarding the internal caching of kernel variables
and the ability to clear that cache.
Notes
Notes: svn path=/head/; revision=181969
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_getpcpu.38
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libkvm/kvm_getpcpu.3 b/lib/libkvm/kvm_getpcpu.3
index 87cd139ca69f..40f16ac7e53c 100644
--- a/lib/libkvm/kvm_getpcpu.3
+++ b/lib/libkvm/kvm_getpcpu.3
@@ -71,6 +71,14 @@ If
is not active, then
.Dv NULL
is returned instead.
+.Sh CACHING
+These functions cache the nlist values for various kernel variables which are
+reused in successive calls.
+You may call either function with
+.Fa kd
+set to
+.Dv NULL
+to clear this cache.
.Sh RETURN VALUES
On success, the
.Fn kvm_getmaxcpu