Re: lm sensors sysfs file structure

From: Martin Schlemmer (azarah@gentoo.org)
Date: Fri Mar 28 2003 - 02:21:48 EST


On Fri, 2003-03-28 at 01:10, Greg KH wrote:
> On Thu, Mar 27, 2003 at 06:00:51PM -0500, Albert Cahalan wrote:
> > Greg KH writes:
> >
> > > temp_max[1-3] Temperature max value.
> > > Fixed point value in form XXXXX and
> > > should be divided by
> > > 100 to get degrees Celsius.
> > > Read/Write value.
> >
> > Celsius can go negative, which may be yucky
> > and hard to test. Kelvin generally doesn't
> > suffer this problem. (yeah, yeah, quantum stuff...)
>
> Wow, only 4 hours before someone mentioned Kelvin, I think I lost a bet
> with someone :)
>
> Seriously, let the value go negative, no problem. As long as it isn't
> floating point input which has to be parsed by the kernel. That's all I
> care about.
>

Silly w83781d again. temp1 is a u8, and temp2 and temp3 is u16
(if they are supported on the specific model.

Should we do any bounds checking on input via sysfs ?

Regards,

-- 
Martin Schlemmer

- 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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:31 EST