From 66ebfe62677492c51522478a10f41e18520ac66b Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 28 May 2001 03:58:36 +0000 Subject: [PATCH] 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 --- comedi/comedi_fops.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.26.2