summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-08-21 19:22:13 +0000
committerjhb <jhb@FreeBSD.org>2008-08-21 19:22:13 +0000
commit50652bcc22780183839fe6fa005166e9dd57a38e (patch)
tree24450952d17e34d418d84f2ec97f0ef92dfa0820 /lib
parent2ceef8c561687016208fda8393575c07a54549d4 (diff)
downloadFreeBSD-src-50652bcc22780183839fe6fa005166e9dd57a38e.zip
FreeBSD-src-50652bcc22780183839fe6fa005166e9dd57a38e.tar.gz
Add a "CACHING" section regarding the internal caching of kernel variables
and the ability to clear that cache.
Diffstat (limited to 'lib')
-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 87cd139..40f16ac 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
OpenPOWER on IntegriCloud