Subject: Re: envsys version 2 API
To: Jason Thorpe <thorpej@shagadelic.org>
From: Jachym Holecek <freza@NetBSD.org>
List: tech-kern
Date: 05/05/2007 12:53:45
# Jason Thorpe 2007-05-05:
> On May 4, 2007, at 2:54 AM, Jachym Holecek wrote:
> ># Juan RP 2007-05-04:
> >>Still more work to do, because I have plans to port sensorsd from  
> >>OpenBSD,
> >
> >Hmm, I guess I'd prefer to monitor high/low watermark in the kernel
> >(at the place sensor value is updated) and emit an event to userland
> >when value is out of bounds, as opposed to userland polling like
> >sensorsd does... but I didn't have much time to think about it.
> 
> Agreed.  And why add another daemon -- extend powerd(8) (and maybe  
> make powerd(8) use a dictionary-based communication channel, while  
> you're at it...)

If powerd(8) moves to a proplib-based protocol then it's quite
likely devmon(8) (to be written during SoC "hal" project) will
be able to handle its job; saving a bit of userland & kernel
code.

We can get back to this later; after more details about "hal"
materialize as ASCII text. In the meantime, extending sysmon
power framework sounds like the right thing to do, but I think
it's better to wait a while with migration to proplib protocol
so that we can avoid duplication of work/too fast API changes.

	-- Jachym