Re: lm sensors sysfs file structure

From: Patrick Mochel (mochel@osdl.org)
Date: Thu Mar 27 2003 - 13:17:09 EST


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

It's a known problem that I haven't been able to track down.

The file size is hardwired to PAGE_SIZE when it is created. For some
reason, it's reset to 0 after it's opened. I haven't had a chance to track
down why, or how to reset it..

        -pat

-
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:29 EST