From owner-freebsd-arch@FreeBSD.ORG Fri Oct 19 09:41:07 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 4B03416A417; Fri, 19 Oct 2007 09:41:07 +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 1024F13C442; Fri, 19 Oct 2007 09:41:06 +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 A0FE917104; Fri, 19 Oct 2007 09:41:05 +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 l9J9f4rh081953; Fri, 19 Oct 2007 09:41:05 GMT (envelope-from phk@critter.freebsd.dk) To: Alexander Leidinger From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 19 Oct 2007 11:34:44 +0200." <20071019113444.xinyc37x9cg0ckk0@webmail.leidinger.net> Date: Fri, 19 Oct 2007 09:41:04 +0000 Message-ID: <81952.1192786864@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: arch@freebsd.org, "Constantine A. Murenin" 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 09:41:07 -0000 In message <20071019113444.xinyc37x9cg0ckk0@webmail.leidinger.net>, 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. 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. -- 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.