- From: Michal Dobes <dobes_at_tesnet.cz>
- Date: Tue, 04 Jun 2002 09:54:27 +0200
Chris Angell wrote:
> When your dealing with realtime commands, and after you've done a
> comedi_map() to get the buffer address, what functions do you use to
> keep track of when to read/write and where, and how much data you can
> read/write? I was checking kcomedilib, but I didn't see any functions
> that are particularly suited to this (maybe I missed something). Any
> help is appreciated.
from include/linux/comedilib.h:
/* ALPHA functions */
unsigned int comedi_get_buf_head_pos(unsigned int minor,unsigned int
subdevice);
int comedi_set_user_int_count(unsigned int minor,unsigned int subdevice,
unsigned int buf_user_count);
The function comedi_get_buf_head_pos() is equal to
comedi_get_front_offset()
from the user space. Maybe is not bad idea to rename this function in
next
comedi release.
Majkl
Received on 2002-06-04Z06:54:27