Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2005 21:53:42 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Fred Gilham <gilham@csl.sri.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Weird problem with devstat interface 
Message-ID:  <17008.1119988422@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 28 Jun 2005 10:49:25 PDT." <200506281749.j5SHnPlr017616@quarter.csl.sri.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200506281749.j5SHnPlr017616@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17008.1119988422>