Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2007 13:48:42 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        arch@freebsd.org, "Constantine A. Murenin" <cnst@freebsd.org>
Subject:   Re: sensors fun..
Message-ID:  <20071019134842.rhlnbcqrbc4sc4o4@webmail.leidinger.net>
In-Reply-To: <81952.1192786864@critter.freebsd.dk>
References:  <81952.1192786864@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Poul-Henning Kamp <phk@phk.freebsd.dk> (from Fri, 19 Oct 2007 =20
09:41:04 +0000):

> In message <20071019113444.xinyc37x9cg0ckk0@webmail.leidinger.net>,  =20
> 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.

More sensible than what?

> 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.

Please explain a little bit more of this architecture regarding the =20
following questions:

What to do with sensors which aren't event based or don't have a =20
predefined polling interval (e.g., temperature and humidity)? What do =20
you think will the ratio be between the amount of sensors with and =20
without something like this?

How is the kernel supposed to know what polling policy the user is =20
interested in (every 5sec/every minute/every 5 minutes/whatever)? Why =20
should this policy/procedure life in the kernel?

Bye,
Alexander.

--=20
Two heads are better than one.
=09=09-- John Heywood

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID =3D B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID =3D 72077137



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071019134842.rhlnbcqrbc4sc4o4>