sensors fun..

Max Laier max at love2party.net
Wed Oct 17 13:56:42 PDT 2007


On Wednesday 17 October 2007, Poul-Henning Kamp wrote:
> In message <47166BA5.1000100 at elischer.org>, Julian Elischer writes:
> >> Having a userland
> >> interface also makes it easier to have backends that are entirely in
> >> userland.
> >
> >maybe a loopback filesystem
>
> Just what is it that is so enticing about the kernel ?  Why not simply
> pass it to a daemon ?

What I like about the OpenBSD framework is, that you can get the sensor 
data with basic tools.  What's wrong with "everything is a file"?  With a 
file system you don't have to jump through any hoops to provide 
concurrent access to more than one reader.  You could easily create 
symlinks to map sensors to location.  You have means to restrict access 
to certain sensors. etc. ...

I'm not sure that you can write the one daemon that suites all needs, but 
if you provide all the sensors in a central place accessible through 
basic tools it's easy to write a shell script that does exactly what you 
need.

-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20071017/529d2e4c/attachment.pgp


More information about the freebsd-arch mailing list