sysctl question

Ed Schouten ed at 80386.nl
Tue Jul 13 08:48:18 UTC 2010


* Andreas Tobler <andreast-list at fgznet.ch> 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,
-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100713/37534f7f/attachment.pgp


More information about the freebsd-hackers mailing list