Re: Non-blocking read

Chris Wedgwood (cw@ix.net.nz)
Tue, 15 Jun 1999 08:14:24 +1200


On Mon, Jun 14, 1999 at 11:27:09AM -0700, David S. Miller wrote:

> By looking at the code (2.3.6), there seems to be no possibility
> to do this. Am I wrong or is it not worth the effort (I might
> disagree) or just impossible?
>
> You probably want "filp->f_flags |= O_NONBLOCK"

How does this help? Last time I checked, there is _no_ way of doing
non-blocking disk IO in the kernel.

Surely to make this work, we need some kind of kernel thread (or
threads) which can sleep to do this IO on behalf of the caller?

-cw

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