inotify is cool, and really bugging me.

Dear Lazyweb,

Why doesn't inotifywatch /sys/kernel/uevent_seqnum work? I get no changes reported at all – and I've even tried using inotify in C adding a watch for IN_ALL_EVENTS. Maybe I'm being really stupid here, but inotify doesn't seem to work at all for sysfs. Help appreciated.


EDIT: Yes, I was being stupid. sysfs doesn't change the value until the file is read. Of course. poll to the rescue, except now that doesn't even work…

One response to “inotify is cool, and really bugging me.”

  1. Anonymous

    /sys/ files do not change, their content is generated dynamically at the time of reading.

Bad Behavior has blocked 2769 access attempts in the last 7 days.