• I
    Staging: comedi: don't write to buffer if command finished · d2611540
    Ian Abbott 提交于
    For write(), any data copied to the data buffer after the previously
    set up streaming acquisition command has finished won't be used, but a
    non-empty write() does not currently return 0 (or -EPIPE on error) after
    the command has finished until the data buffer has been filled up.
    Change this behavior to return 0 (or -EPIPE) any time after the command
    has finished, without bothering to fill up the buffer with more useless
    data.
    Signed-off-by: NIan Abbott <abbotti@mev.co.uk>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    d2611540
comedi_fops.c 60.2 KB