On Thu, 2005-03-10 at 00:01 +0100, Pavel Machek wrote: > On ?t 10-03-05 10:00:38, Nigel Cunningham wrote: > > Hi. > > > > On Thu, 2005-03-10 at 09:48, Pavel Machek wrote: > > > > I guess the real show stopper would be the fact that you'd need to have > > > > your userspace daemon constantly scanning these sysfs files for events. > > > > > > inotify? By the time we are done with this, inotify is very likely to > > > be in kernel. > > > > You'd have to set one up for each and every file in sysfs, and you'd > > still have to scan for new files, right? > > I was under impression that inotify is expected to solve both of > these. > kobject_uevent already solves this and it's in the kernel since 2.6.10. It also allows you to send typed messages such as "power state changed to XYZ". David