From owner-freebsd-arch@FreeBSD.ORG Tue Nov 27 15:36:16 2007 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B435E16A420; Tue, 27 Nov 2007 15:36:16 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 297FC13C46B; Tue, 27 Nov 2007 15:36:16 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A54D2C.dip.t-dialin.net [84.165.77.44]) by redbull.bpaserver.net (Postfix) with ESMTP id 716482E2A4; Tue, 27 Nov 2007 16:35:35 +0100 (CET) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id E4CD3778DF; Tue, 27 Nov 2007 16:35:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1196177733; bh=ycccLfr3iMC5ZwKGVDW4za0FriAc6I2yJ KZThIOTf90=; h=Message-ID:X-Priority:Date:From:To:Cc:Subject: References:In-Reply-To:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:User-Agent; b=evzAnS Oe3TUtIwhFRTS8MQOQP3/rHl41PEQ8yU4U7CbyDe8Dg0rQyCtmvWxatCpBY799QkJBm fUDikhFwg/OUGCimJtukyysjA6gQAvxmWIR0T7J0enNmbSv667aeWJfzPyeFun6fVKh IkLQN9qTnYrM90HZa7PlORUYvUNc2mBSeLz5vqvG0OlyyMXg2cWE7DHV2Wjxyc06ycf Pga/Ore71VhfJVjk8T4LJONtqK/KU+q8hd627vKnBW6g6G0U1JrjFTKU/XQdjFDgdvf MqAvQ5DcoNfBw4CAWgMD4gkqR7Yb4OIx/A6zNL0rDXJQFNfDORQS8CPbgCK/BKd8zYA g== Received: (from www@localhost) by webmail.leidinger.net (8.14.1/8.13.8/Submit) id lARFZWC7045318; Tue, 27 Nov 2007 16:35:32 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 27 Nov 2007 16:35:32 +0100 Message-ID: <20071127163532.a7xrcya7fo0cg8ws@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Tue, 27 Nov 2007 16:35:32 +0100 From: Alexander Leidinger To: qpadla@gmail.com References: <20071109124421.3c1901b1@deskjail> <20071126124438.GA77230@tirith.brixandersen.dk> <20071126143319.x9e9cezeo0ocso8k@webmail.leidinger.net> <200711261956.15268.qpadla@gmail.com> In-Reply-To: <200711261956.15268.qpadla@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: cnst@freebsd.org, arch@freebsd.org, rwatson@freebsd.org, Henrik Brix Andersen , freebsd-arch@freebsd.org, imp@freebsd.org Subject: Re: sensors framework continued (architecture) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2007 15:36:16 -0000 Quoting Nikolay Pavlov (from Mon, 26 Nov 2007 =20 19:56:11 +0200): > On Monday 26 November 2007 15:33:19 Alexander Leidinger wrote: >> What we discuss in this thread is the kernel<->userland interface. You = =EF=BF=BD >> wrote that Linux uses sysfs as the kernel<->userland interface. Poul =EF= =BF=BD >> proposes the /dev/sensors special file (not directory) as the =EF=BF=BD >> kernel<->userland interface, and I propose sysctl as the =EF=BF=BD >> kernel<->userland interface. > > This is file descriptor based interface if i am not mistaken. But it uses > natural MIB-like directory structure. Isn't this is a compromise? It would be a compromise from the MIB point of view, but not from the =20 complexity point of view. For a directory structure you need to write =20 a pseudo-fs. This means everything has to go through the several =20 layers (vfs, pseudo-fs, ...). With sysctl you don't need to write that =20 much complex code, as you already have something which handles the MIB =20 thing and you don't go through that much complex layers. =3D> less code, =20 less to debug, less complexity. The discussion in this thread is, that =20 I think a FD based approach (and the additional things Poul proposes =20 to do in the kernel) is overly complex, it can be done in userland =20 (the additional things he proposes t put into the kernel) with =20 existing interfaces (sysctl). Bye, Alexander. --=20 If you sit down at a poker game and don't see a sucker, get up. You're the sucker. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137