From: Frank Mori Hess Date: Mon, 28 May 2001 03:58:36 +0000 (+0000) Subject: added a do_become_nonbusy() when all the data is marked as being read (presumably... X-Git-Tag: r0_7_60~201 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=66ebfe62677492c51522478a10f41e18520ac66b;p=comedi.git added a do_become_nonbusy() when all the data is marked as being read (presumably via a mmap) instead of being read in the conventional way --- diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 76227cfe..24e65adb 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -516,6 +516,9 @@ static int do_bufinfo_ioctl(comedi_device *dev,void *arg) DPRINTK("buffer overrun\n"); return -EIO; } + if(!(s->subdev_flags&SDF_RUNNING) && async->buf_int_count==async->buf_user_count){ + do_become_nonbusy(dev,s); + } } comedi_spin_lock_irqsave(&bufinfo_lock, irq_flags);