On Tue, Jun 19, 2001 at 10:57:38PM -0400, Michael Rothwell wrote:
> On 19 Jun 2001 20:01:56 +0100, Alan Cox wrote:
>
> > Linux inherits several unix properties which are not friendly to good state
> > based programming - lack of good AIO for one.
>
> Oh, how I would love for select() and poll() to work on files... or for
> any other working AIO mothods to be present.
>
> What would get broken if things were changed to let select() work for
> filesystem fds?
I asked Linus for this a long time ago and he pointed out that you couldn't
make it work over NFS, at least not nicely. It does seem like that could
be worked around by having a "poll daemon" which knew about all the things
being waited on and checked them. Or something.
I'd like it too. And I'd like a callback for iocompletion, a way to do
preread(fd, len).
On the other hand, the fact that it doesn't exist on other platforms sort
of means that it isn't going anywhere. In a sick sort of way, the most
likely way to make this happen is to get Microsoft to do it and then Linux
will do it as well and then the Solaris jocks will also fall in line. The
only problem with that is that Microsoft can't design an OS interface to save
their lives, so maybe Linux _should_ do it first.
--
---
Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/