From 50652bcc22780183839fe6fa005166e9dd57a38e Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 21 Aug 2008 19:22:13 +0000 Subject: Add a "CACHING" section regarding the internal caching of kernel variables and the ability to clear that cache. --- lib/libkvm/kvm_getpcpu.3 | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.1