For FASYNC, I think we'd need another ioctl to say "if this
directory/file is modified, or this directory's inodes are modified,
that now counts as pending I/O for SIGIO purposes".
I do think poll() is the ideal place to add the extended functionality,
not select(), as poll() has scope for new types of events to be added.
Also, programs which use this mechanism would like to know at compile
time if it's supported. Relying on unusual behaviour of select() on
directories would mean these programs compile fine on other OSes or even
older versions of Linux, but don't work properly.
Perhaps both these things could be combined, so the flags passed to
poll() indicating interest in certain conditions are the same conditions
& flags passed to fcntl() to request a signal.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html