Re: VFS event hooks

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 27 Jun 1999 17:46:53 +0100 (BST)


> 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/