Messages in this thread | ![/](/images/icornerl.gif) | | Date | Thu, 27 Mar 2003 10:52:22 -0800 | From | Greg KH <> | Subject | Re: lm sensors sysfs file structure |
| |
On Thu, Mar 27, 2003 at 07:40:26PM +0100, Jan Dittmer wrote: > Greg KH wrote: > >That would give us one value per file, use no floating point in the > >kernel (fake or not) and generally make things a whole lot more orderly. > >Also, if a sensor does not have a max value (for example, I don't really > >know if this is true), instead of having to fake a value, it can just > >not create the file. Then userspace can easily detect this is not > >supported, and is not a placeholder value. > > > > Is this the way you want to go? Just an example for the voltages.
That looks very good to me, nice job.
Sensors developers, does this look sane?
> Btw, is it indended behaviour of sysfs, that after writing to a file, > the size is zero?
Hm, don't know about that, I haven't seen that before. If you cat the file after writing it, does the file size change?
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/
| ![\](/images/icornerr.gif) |