Re: async i/o question



anatolik <anatolik@xxxxxxxxx> writes:
I'm new to linux kernel and need some advice. I need to implement
async i/o between application and kernel module. It should work like
this: application allocates number of buffers and sends them to
kernel module and goes to sleep (wait for some notification), kernel
module fills the buffers when it has data and notifies application
that a buffer is ready. Application wakes up, processes the data in
the buffer and sends it back to kernel module and goes to sleep
until next notification.

Ehh ... assuming you state your requirements correctly (and
completely), this is ordinary 'blocking' synchronous I/O, which
happens to be the default behaviour of the respective primitives
(read/ write/ send/ recv usf).
.



Relevant Pages

  • Re: async i/o question
    ... io_setup - Create an asynchronous I/O context ... allocates number of buffers and sends them to kernel module and goes ... goes to sleep until next notification. ...
    (comp.os.linux.development.system)
  • async i/o question
    ... allocates number of buffers and sends them to kernel module and goes ... goes to sleep until next notification. ...
    (comp.os.linux.development.system)
  • Re: async i/o question
    ... You cannot queue several buffers using ... kernel module and I found it in v4l framework. ... THIS IS ORDINARY 'BLOCKING' SYNCHRONOUS I/O. ...
    (comp.os.linux.development.system)