Subject: Re: envsys version 2 API
To: Jason Thorpe <thorpej@shagadelic.org>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 04/25/2007 00:25:53
On Tue, 24 Apr 2007 15:22:56 -0700
Jason Thorpe <thorpej@shagadelic.org> wrote:
> Probably better is "deliver an kevent every time the data has
> changed". Of course the data can be read any time, but the driver
> polls, gets new values, compares to the last values, and sends a
> kevent when any of the values differ.
Right now my code checks if the new data is different than current
data in the dictionary, and if it's not doesn't update it.
But perhaps using kqueue is faster, I don't know.
--
http://plog.xtrarom.org/
Juan RP's blog - NetBSD/pkgsrc news in Spanish