Re:comedi_command kernel space usage

Hi,
 Jorg's modification works, but I found out that you can read the buffer
contents from the callback function using comedi_get_buffer_offset(), and
comedi_mark_buffer_read(), and ignoring the 'data' field on the command
structure.  That works without having to change the source.

Andrés

>
> Hi, in order to use comedi_command for asyncronous acquisition from kerne=
> l space
> i've found an interesting mail of Jorg Biedermann posted on 09 f=
> eb 2004 into
> comedi mailing list. In this mail there are some lines of c=
> ode that i've added
> to ni_mio_common.c. With this lines i can acquire sa=
> mples from kernel space
> using my NI PCI-6014 boards with no problems. Th=
> e question is: are these
> modifications the right solution? Current versi=
> on of ni_mio_common.c is not
> modified with these lines and it seems that=
>  comedi_command cannot put samples in
> kernel space buffer.
> TIA
>
> Alber=
> to Sechi.

Received on 2004-06-11Z13:43:07