> I wrote kstat as a way to improve on the current BSD method of getting
> kernel statistics, which involves looking up a particular kernel symbol
> name and then getting the value from the symbol offset. This makes any
> performance monitoring tool or an application that gets kernel stats
> non-portable across different kernel versions if for some reason, the names
> of these variables happen to change.

We have been progressively obsoleting this for some time in favour of 
sysctl, which covers all of the features you're offering and then some.

Probably the only major advantage your implementation has is the direct 
handling of strings as identifiers, rather than the name-to-oid lookup, 
but the cached OID provides a much faster lookup method for values you 
want to get on a regular basis.

-- 
\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
\\ Tell him he should learn how to fish himself,  \\  [EMAIL PROTECTED]
\\ and he'll hate you for a lifetime.             \\  [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to