logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

comedi_get_buffer_write_count - streaming buffer write count

Authors

DavidSchleef <ds@schleef.org>
           Author.

       FrankMoriHess <fmhess@users.sourceforge.net>
           Author.

       HermanBruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
           Author.

       BerndPorr <tech@linux-usb-daq.co.uk>
           Author.

       IanAbbott <abbotti@mev.co.uk>
           Author.

       ÉricPiel <piel@delmic.com>
           Author.

Description

       The function comedi_get_buffer_write_count is used on a subdevice that has a Comedi command in progress
       to get the number of bytes that have been written to the buffer, modulo UINT_MAX + 1. The value is stored
       in *write_count.

Name

       comedi_get_buffer_write_count - streaming buffer write count

Return Value

       On success, 0 is returned. On failure, -1 is returned.

Synopsis

#include<comedilib.h>intcomedi_get_buffer_write_count(comedi_t*device,unsignedintsubdevice,unsignedint*write_count);

See Also