On Wed, 22 Oct 2008, Matthew Garrett wrote: > On Wed, Oct 22, 2008 at 11:48:32AM -0700, Trent Piepho wrote: > >> Then you could just call sysfs_show_attribute(hwmondev, "temp2_input", buf) or >> whatever and get the value in the kernel. It would would with all drivers >> without adding a code to them. > > Mnf. I'm not convinced general kernel upstream would be enthusiastic. Any reason for that? It would solve a lot of problems with trying to use sysfs interfaces from inside the kernel. It's not just hwmon where this is an issue, but other systems have this problem too. For instance the led subsystem only has a userspace sysfs interface.