- From: Nils Juergens <ju_at_isf.rwth-aachen.de>
- Date: Thu, 29 Apr 2004 11:32:31 +0200
On Wed, 28.04.04, Alex Fielding <afielding_at_adelphia.net> wrote:
> Can you help me make some sense of it? Comedi Poll is returning a value
> of -5. What does this mean?
A return value of -5 means that the function returns -EIO. In comedi_poll()
from kcomedilib_main.c this can either be
async = s->async;
if(s->type==COMEDI_SUBD_UNUSED || !async)
return -EIO;
or
/* are we running? XXX wrong? */
if(!s->busy)
return -EIO;
My current _guess_ is that comedi_command() from kcomedilib forgets to set
s->busy. At least i was unable to find it.
Try adding
if(s->busy) {
return -EBUSY;
}
s->busy = d;
after line 147 of kcomedilib_main.c
good luck,
Nils
Received on 2004-04-29Z08:32:31