logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

comedi_get_buffer_write_offset - streaming buffer write offset

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_offset is used on a subdevice that has a Comedi command in progress
       to get the current write position in the streaming buffer as an offset in bytes from the start of the
       buffer. The position will wrap around to 0 when it reaches the buffer size. This offset is only useful
       for memory mapped buffers.

Name

       comedi_get_buffer_write_offset - streaming buffer write offset

Return Value

       On success, comedi_get_buffer_write_offset returns the current write position as an offset in bytes from
       the start of the buffer. On failure, -1 is returned.

Synopsis

#include<comedilib.h>intcomedi_get_buffer_write_offset(comedi_t*device,unsignedintsubdevice);

See Also