From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 13 08:48:18 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 3ABE11065672 for ; Tue, 13 Jul 2010 08:48:18 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 013F08FC19 for ; Tue, 13 Jul 2010 08:48:18 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 2ABCD2A28CD7; Tue, 13 Jul 2010 10:48:17 +0200 (CEST) Date: Tue, 13 Jul 2010 10:48:17 +0200 From: Ed Schouten To: Andreas Tobler Message-ID: <20100713084817.GU1742@hoeg.nl> References: <4C3B783D.5050200@fgznet.ch> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oIMVlEQ///Q2JYC7" Content-Disposition: inline In-Reply-To: <4C3B783D.5050200@fgznet.ch> User-Agent: Mutt/1.5.20 (2009-06-14) 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 08:48:18 -0000 --oIMVlEQ///Q2JYC7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * 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". Greetings, --=20 Ed Schouten WWW: http://80386.nl/ --oIMVlEQ///Q2JYC7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkw8KFEACgkQ52SDGA2eCwV5qwCcCKKkzb6JdWPoA907OIDLO5Jw zjUAn2kGeIEPmOKv6+NvYm4m8nD01EEy =1tKD -----END PGP SIGNATURE----- --oIMVlEQ///Q2JYC7--