RE: [PATCH v3] tools: usb: aio example applications

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michal Nazarewicz
> On Tue, Feb 04 2014, Robert Baldyga wrote:
> > This code is an example. Don't you think it would be better to keep it
> > simple?
> 
> PS. Of course another approach is to use two threads one for ep0 and the
> other for transfers.  Yet another, is to add AIO to ep0 in the kernel.

I didn't look closely enough into the internals to see what this is
actually doing. but when you refer to AIO are you referring to some
feature of the usb stack that queues up requests and then indicates
that they have finished, or the more general aio_read() functions?

IIRC the latter use a thread to do a synchronous read since normal
unix kernels are not designed to async io. The threads might be a
limited kernel resource.

	David

��.n��������+%������w��{.n�����{���)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux