sensors fun..

Warner Losh imp at bsdimp.com
Fri Oct 19 09:07:15 PDT 2007


From: "Poul-Henning Kamp" <phk at phk.freebsd.dk>
Subject: Re: sensors fun.. 
Date: Fri, 19 Oct 2007 09:41:04 +0000

> In message <20071019113444.xinyc37x9cg0ckk0 at webmail.leidinger.net>, Alexander L
> eidinger writes:
> 
> >I was thinking you talk about the interface between the kernel and the  
> >userland. Now I think that you talk more or less about something which  
> >could be implemented e.g., as an userland library which not only polls  
> >the kernel sensors framework, but provides the single-system sensor  
> >data (and could be a base of a singe-system sensor daemon which feeds  
> >its data to a group-level sensors framework). Does this sound like  
> >what you have in mind?
> 
> It certainly sounds more sensible.
> 
> The kernel-userland interface should happen over a filedescriptor
> (either device or unix-domain socket) so that whatever daemon we
> park on the fd can just use select/poll/kqueue to wait for events.

If we're going to have a stream of data from the kernel, is there any
reason to invent another daemon for that?  We already have devd that
deals with a number of disparate events from the kernel in a fairly
generic way.

Warner


More information about the freebsd-arch mailing list