Subject: Re: envsys version 2 API
To: Martin Husemann <martin@duskware.de>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-kern
Date: 04/24/2007 15:22:56
On Apr 24, 2007, at 3:19 PM, Martin Husemann wrote:

> On Tue, Apr 24, 2007 at 03:17:20PM -0700, Jason Thorpe wrote:
>> Unfortunately, most of the sensors themselves are polling, and not
>> interrupt driven.
>
> Yes, that's why a kqueue api would be very conveninent - deliver a  
> kevent
> every time kernel has polled.

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.

-- thorpej