lkml.org 
[lkml]   [2003]   [Apr]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 2 Apr 2003 16:28:22 -0800
FromGreg KH <>
SubjectRe: lm sensors sysfs file structure
On Wed, Apr 02, 2003 at 12:27:47AM +0100, Dave Jones wrote:
> 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.

Hm, in looking around the kernel some more, it seems that there are a
number of other places that export voltage and temperature values (ACPI
being one of the most obvious.)  It might be time to start thinking of a
single userspace library to access all of these kinds of values in a
system, instead of having to probe around different parts of the sysfs
tree by hand...

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:34    [from the cache]
©2003-2008