Messages in this thread | ![/](/images/icornerl.gif) | | Date | Thu, 27 Mar 2003 12:17:09 -0600 (CST) | From | Patrick Mochel <> | Subject | Re: lm sensors sysfs file structure |
| |
> > 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/
| ![\](/images/icornerr.gif) |