- From: AlbertoSechi\_at_libero\.it <AlbertoSechi_at_libero.it>
- Date: Thu, 17 Jun 2004 17:44:49 +0200
Hi, i'm trying to use comedi_get_buffer_offset() and comedi_mark_buffer_read() from callback functions with no results. I've seen that there is an example in demo directory of comedilib called mmap.c. I'm writing a kernel module so i cannot use mmap() function isn't it? How can i solve this problem? How can i get data from buffer without using mmap() ? 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-17Z14:44:49