> 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
- Re: kstat - an API for gathe... Doug Rabson
- Re: kstat - an API for gathering kernel stats Alex Zepeda
- Re: kstat - an API for gathering kernel s... Matthew N. Dodd
- Re: kstat - an API for gathering kern... Ronald G. Minnich
- Re: kstat - an API for gathering kernel stats Matthew Jacob
- FreeBSD FibreChannel support Jonathan M. Bresler
- Re: FreeBSD FibreChannel support Matthew Jacob
- Re: FreeBSD FibreChannel support Wilko Bulte
- Re: FreeBSD FibreChannel support Matthew Jacob
- Re: FreeBSD FibreChannel sup... Wilko Bulte
- Fwd: Re: kstat - an API for gathering kernel stat... Mike Smith
- Fwd: Re: kstat - an API for gathering kernel stats Arun Sharma
- Re: Fwd: Re: kstat - an API for gathering kernel ... Andrzej Bialecki
- Re: Fwd: Re: kstat - an API for gathering ker... Dan Seguin
- Re: Fwd: Re: kstat - an API for gathering... Andrzej Bialecki
- Re: Fwd: Re: kstat - an API for gathering ker... Arun Sharma
- Re: Fwd: Re: kstat - an API for gathering... Andrzej Bialecki
- Re: Fwd: Re: kstat - an API for gathe... Arun Sharma
- Re: Fwd: Re: kstat - an API for gathering... Matthew N. Dodd
- Re: Fwd: Re: kstat - an API for gathe... Louis A. Mamakos