Messages in this thread | | | Date | Wed, 23 Oct 2002 15:24:49 -0700 | From | Dan Kegel <> | Subject | Re: async poll |
| |
John Gardiner Myers wrote: > > Dan Kegel wrote: > >> In that situation, why not just add the fd to an epoll, and have the >> epoll deliver events through Ben's interface? > > > Because you might need to use the aio_data facility of the iocb > interface.
Presumably epoll_add could be enhanced to let user specify a user data word.
> Because you might want to keep the kernel from > simultaneously delivering two events for the same fd to two different > threads.
You might want to use aio_write() for writes, and read() for reads, in which case you could tell epoll you're not interested in write readiness events. Then there'd be no double notification for reads or writes on same fd. It's a bit contrived, but I can imagine it being useful.
- Dan
- 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/
| |