Re: continuous DMA broken (ni_mio_common: buffer overflow) in comedi-cvs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 20 October 2002 03:41 am, Tomasz Motylewski wrote:
>
> Why I can not just set up the transfer and then peek into the buffer from
> time to time when(if) I wish? When the DMA ring is circular there is no
> need for any interrupts at all. I know you will say "register the callback
> and just do there comedi_set_user_int_count()", but these are precious
> microseconds! Why Comedi driver can not just configure and start the card
> and get out of my way?
>

Tomek,

Well, I'd say the obvious answer would be that noone has cared enough about 
this particular ability to code it, whereas being able to detect possibly 
corrupt data is vital.  Adding a command flag that disables buffer overrun 
checking for mmap-style access to comedi's buffer seems reasonable though.

- -- 
Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9ssXV5vihyNWuA4URAhjRAKDYHFXngaUVPVj8CGopwadvWk4TPwCgoC7F
ajFl/VVFsjpPiVMX4mFBoNY=
=C4sP
-----END PGP SIGNATURE-----

Received on 2002-10-20Z14:03:46