sysctl question

Andreas Tobler andreast-list at fgznet.ch
Tue Jul 13 19:54:26 UTC 2010


On 13.07.10 10:48, Ed Schouten wrote:
> * 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".

Thanks Ed!

I need to figure out how to format my temperature value to fit with this 
modifier.

Regards,
Andreas


More information about the freebsd-hackers mailing list