lkml.org 
[lkml]   [1999]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: VFS event hooks
Date
From
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.055 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site