alistair23-linux/drivers/staging/comedi
Ian Abbott be611a1de3 staging: comedi: COMEDI_BUFINFO: terminate "write" command when stopped
The `COMEDI_BUFINFO` ioctl is used to advance the current position in
the buffer by a specified amount (which can be 0) and get the current
position.  An asynchronous command in the "read" direction is terminated
automatically once it has stopped and information about the final
position and error has been reported back to the user.  That is not
currently done for commands in the "write" direction.  Change it to
terminate the command in the "write" direction automatically.  If the
command stopped with an error, report an `EPIPE` error back to the user,
otherwise just report the final buffer position back to the user.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-20 15:25:58 -08:00
..
drivers staging: comedi: drivers: Use DIV_ROUND_CLOSEST 2016-02-20 15:25:58 -08:00
kcomedilib
comedi.h Staging: comedi: Prefer using the BIT macro 2016-02-11 19:47:27 -08:00
comedi_buf.c
comedi_compat32.c
comedi_compat32.h
comedi_fops.c staging: comedi: COMEDI_BUFINFO: terminate "write" command when stopped 2016-02-20 15:25:58 -08:00
comedi_internal.h
comedi_pci.c
comedi_pci.h
comedi_pcmcia.c
comedi_pcmcia.h STAGING: COMEDI: Wrap line over 80 characters 2016-02-07 18:38:37 -08:00
comedi_usb.c
comedi_usb.h
comedidev.h
comedilib.h staging: comedi: comedilib.h: Coding style warning fix for block comments 2015-12-21 16:01:12 -08:00
drivers.c
Kconfig
Makefile
proc.c
range.c
TODO