Re: Could /dev/epoll deliver aio completion notifications? (was: Re: sigopen() vs. /dev/sigtimedwait)

From: Dan Kegel (dank@kegel.com)
Date: Sat Aug 04 2001 - 01:27:49 EST


Zach Brown wrote:
>
> > On the other hand, if /dev/epoll were flexible enough that it could
> > deliver AIO completion notifications,
>
> As far as I know, Ben LaHaise (bcrl@redhat.com) already has a fine
> method conceived for receiving batches of async completion, including an
> "async poll". It should give the sort of behaviour you want and is also
> useful for other AIO things, obviously :)
>
> You should really chat with him.

I suppose it shouldn't suprise me that real kernel hackers like Ben
just work on cool things quietly, and bufoons like me get excited
at the merest thought, and have to broadcast them on l-k. Sigh.

A little digging finds a few references to Ben's aio work:

http://uwsg.iu.edu/hypermail/linux/kernel/0102.0/0384.html
http://www.kvack.org/~blah/aio/v2.4.5-ac9-bcrl4-aio.diff

His patch creates /dev/aio, among other things, and includes
the wonderful excerpt

diff -urN /md0/kernels/2.4/v2.4.5-ac9/include/asm-i386/errno.h aio-2.4.5-ac9/include/asm-i386/errno.h
--- /md0/kernels/2.4/v2.4.5-ac9/include/asm-i386/errno.h Mon Feb 26 10:20:14 2001
+++ aio-2.4.5-ac9/include/asm-i386/errno.h Wed Jun 13 17:08:50 2001
@@ -128,5 +128,6 @@
 
 #define ENOMEDIUM 123 /* No medium found */
 #define EMEDIUMTYPE 124 /* Wrong medium type */
+#define ENOCLUE 125 /* userland programmer induced race condition */

:-)

Given how occupied Ben is with urgent matters like tracking down the
VM suckage, I don't expect he has much time for chatting about this stuff.

OK, guess I'll content myself with working through Ben's (and Davide's)
code and understanding it. Sorry for all the line noise, folks.
- Dan

-- 
"I have seen the future, and it licks itself clean." -- Bucky Katt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Aug 07 2001 - 21:00:32 EST