Messages in this thread | | | Subject | Re: VFS event hooks | Date | Sun, 27 Jun 1999 17:46:53 +0100 (BST) | From | Alan Cox <> |
| |
> Note that the poll() approach would simply mean that the file browser > would have each directory that it displays open - and running poll on > them. Whenever poll indicates that the directory changed, it re-reads the > directory and updates as necessary.
Ted Tso pointed something out at Expo we'd missed. There is a problem with using poll() as there is no "changed since last time" case. That means there is no way to do
{ if(its_changed() do_thing poll() }
as the poll won't be working for "since last poll".
SIGIO instead is the model that is uglier but probably right - especially now we have rt signals that pass the fd back
- 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.tux.org/lkml/
| |