From owner-freebsd-arch@FreeBSD.ORG Fri Oct 19 16:12:46 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 D900116A417; Fri, 19 Oct 2007 16:12:46 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 994E013C4A5; Fri, 19 Oct 2007 16:12:39 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 1A08B17104; Fri, 19 Oct 2007 16:12:37 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id l9JGCaww083491; Fri, 19 Oct 2007 16:12:37 GMT (envelope-from phk@critter.freebsd.dk) To: Warner Losh From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 19 Oct 2007 10:05:16 CST." <20071019.100516.74722974.imp@bsdimp.com> Date: Fri, 19 Oct 2007 16:12:36 +0000 Message-ID: <83490.1192810356@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Alexander@Leidinger.net, cnst@freebsd.org, arch@freebsd.org Subject: Re: sensors fun.. 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: Fri, 19 Oct 2007 16:12:46 -0000 In message <20071019.100516.74722974.imp@bsdimp.com>, Warner Losh writes: >> 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. The kernel and userland sensors would result in two kinds of data, measurements ("32°C") and events ("new sensor", "high temp") devd should not see the measurements, but it might be a good idea if it could see the events from all sensors (userland AND kernel). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.