lm sensors sysfs file structure

Dave Jones davej at codemonkey.org.uk
Wed Apr 2 01:27:47 CEST 2003

On Mon, Mar 31, 2003 at 10:44:39PM -0800, Greg KH wrote:
 > > Well, you had cV for PSU voltages and mV for cpu core voltage. I guess mV
 > > and mili-deg-C everywhere would be nicer. 
 > As for why no floating point, it's a pain in the but to both output a
 > fixed point number from the kernel into floating point, and to parse a
 > floating point number from userspace within the kernel, turning it into
 > a fixed point number.  With the proposal I wrote up, none of that is
 > needed, and all userspace has to do is divide by a factor of 10 to get
 > the proper value.

FWIW, I'm taking the same fixed-point millivolt approach with the
sysfs overrides for cpufreq.  Having similar things in sysfs
exporting the same units seems to be a good idea.


More information about the lm-sensors mailing list