Re: lm sensors sysfs file structure

Martin Schlemmer
2003-03-28T07:13:47Z

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