Subject: Re: envsys version 2 API
To: Bill Stouder-Studenmund <wrstuden@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 05/10/2007 12:10:20
On Tue, 8 May 2007 12:41:13 -0700
Bill Stouder-Studenmund <wrstuden@netbsd.org> wrote:

> > My idea is, that with envstat you'll be able to set the high/low
> > critical value in a sensor and then if the current value in the driver
> > has exceeded it, a PSWITCH_EVENT_CRITICAL event will be sent to powerd.
> 
> So what does the polling?

I'm using a callout in sysmon_envsys.c to periodically check for the
critical event, the timeout should be configurable and will be set by
envstat.

I added a PSWITCH_EVENT_ENORMAL event for when the sensor state has
changed to a normal state again.

-- 
http://plog.xtrarom.org/
Juan RP's blog - NetBSD/pkgsrc news in Spanish