Weird problem with devstat interface

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Jun 28 19:53:53 GMT 2005


In message <200506281749.j5SHnPlr017616 at quarter.csl.sri.com>, Fred Gilham write
s:

>I have been able to get the program to stop doing this by changing the
>calls to
>
>devstat_checkversion()
>devstat_getnumdevs()
>devstat_getdevs()
>
>so they don't use the kvm interface but the sysctl interface
>(i.e. passing NULL instead of a file descriptor to /dev/kvm).

You shouldn't be using the kvm interface in the first place.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list