- From: Andrés Cascallana Alvarez <acascallana_at_simulare.es>
- Date: Thu, 17 Jun 2004 18:02:50 +0200
Use comedi_map() on init_module() and comedi_unmap() on your cleanup_module. They are declared in comedilib.h This way you get a pointer to the buffer. Then use comedi_get_buffer_offset() and comedi_mark_buffer_read(). Andrés ----- Original Message ----- From: <AlbertoSechi_at_libero.it> To: "acascallana" <acascallana_at_simulare.es> Cc: "comedi" <comedi_at_comedi.org> Sent: Thursday, June 17, 2004 5:44 PM Subject: comedi_command kernel space 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() ?
Received on 2004-06-17Z15:02:50