From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 13 19:54:25 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E46A7106566B for ; Tue, 13 Jul 2010 19:54:25 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 8273D8FC21 for ; Tue, 13 Jul 2010 19:54:24 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id o6DJsIT2038739; Tue, 13 Jul 2010 21:54:19 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <4C3CC46A.8080607@fgznet.ch> Date: Tue, 13 Jul 2010 21:54:18 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.4) Gecko/20100608 Lightning/1.0b2 Thunderbird/3.1 MIME-Version: 1.0 To: Ed Schouten References: <4C3B783D.5050200@fgznet.ch> <20100713084817.GU1742@hoeg.nl> In-Reply-To: <20100713084817.GU1742@hoeg.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: freebsd-hackers@freebsd.org Subject: Re: sysctl question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2010 19:54:26 -0000 On 13.07.10 10:48, Ed Schouten wrote: > * Andreas Tobler wrote: >> But now I wonder how can I teach the sysctl to print my tempreature >> the same way as my userland app does. > > I seem to remember all the other temperature sensors expose their value > using tenth Kelvin precision. There is some kind of modifier you can add > to the SYSCTL_INT declaration to denote that it's a temperature value. > The sysctl(8) code on HEAD seems to suggest the type is "IK". Thanks Ed! I need to figure out how to format my temperature value to fit with this modifier. Regards, Andreas