inotify doesnt work on /sys and /proc file systems. So how can I monitor a /sys partition file without polling?
Asked
Active
Viewed 3,387 times
1 Answers
2
What kind of polling? Do you mean a sleep/check loop? Or do you mean the poll system call as documented in man 2 poll?
According to a 2009 email from kernel developer Greg KH, the best option is to use select. See man 2 select for details.
Note that the poll system call is basically the same as this.
On the other hand, the current inotify FAQ suggests it might work.
Why not try it and find out?
Mikel
- 9,184