Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2007 05:14:25 +0400
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        Alexander Leidinger <netchild@FreeBSD.ORG>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Wilko Bulte <wb@freebie.xs4all.nl>, src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/etc Makefile sensorsd.conf src/etc/defaults rc.conf src/etc/rc.d Makefile sensorsd src/lib/libc/gen sysctl.3 src/sbin/sysctl sysctl.8 sysctl.c src/share/man/man5 rc.conf.5 src/share/man/man9 Makefile sensor_attach.9 src/sys/conf files ...
Message-ID:  <20071018011425.GA82493@nagual.pp.ru>
In-Reply-To: <20071018000032.GU39759@funkthat.com>
References:  <20071015152408.10kvgtog6cooc4wc@webmail.leidinger.net> <48258.1192460507@critter.freebsd.dk> <20071015210909.1b6b693b@deskjail> <20071015202115.GP39759@funkthat.com> <20071016184047.8zh3fl90gksks40c@webmail.leidinger.net> <20071017202312.GA78324@nagual.pp.ru> <20071018000032.GU39759@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 17, 2007 at 05:00:33PM -0700, John-Mark Gurney wrote:
> > Why not to put them under DEVFS like /dev/sensors/* ? They are devices 
> > after all. I agree that putting devices under sysctl.* is bad idea.
> 
> a) How does a userland driver present a DEVFS/device instance?
> 
> b) For exporting a simple integer, sysctl makes more sense than the
> device interface.  (I'm not getting into naming the sysctl node, or
> where it should be located.)

Your a) and b) are in logical conflict. If they are only simple integers 
(in general sensor can be more complicated than single integer) why 
userland driver is ever needed? Simple daemon is enough.

I think loadable kernel modules are not worse than userland drivers since 
can be used only by those who needs them. 

-- 
http://ache.pp.ru/



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