diff options
author | Ian Abbott | 2015-10-09 13:26:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-10-13 19:28:40 +0200 |
commit | 432fbde739583140c7ee937910786a9d740804c9 (patch) | |
tree | 3486cf6f9785491067956b219ff1a33dc32344d4 /drivers/staging/comedi/comedi_fops.c | |
parent | staging: comedi: rename comedi_buf_write_n_available (diff) | |
download | kernel-qcow2-linux-432fbde739583140c7ee937910786a9d740804c9.tar.gz kernel-qcow2-linux-432fbde739583140c7ee937910786a9d740804c9.tar.xz kernel-qcow2-linux-432fbde739583140c7ee937910786a9d740804c9.zip |
staging: comedi: add new comedi_buf_write_n_available()
Add a new function `comedi_buf_write_n_available()` to return the amount
of buffer space available for writing, including space already allocated
by `comedi_buf_write_alloc()` plus any unallocated space available.
This is currently just for internal use by the comedi core, so is not
exported.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions