comedi_get_buffer_write_offset man page

comedi_get_buffer_write_offset — streaming buffer write offset

Synopsis

#include <comedilib.h>

int comedi_get_buffer_write_offset(comedi_t * device, unsigned int subdevice);

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.

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.

Authors

David Schleef <ds@schleef.org>

Author.

Frank Mori Hess <fmhess@users.sourceforge.net>

Author.

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

Author.

Bernd Porr <tech@linux-usb-daq.co.uk>

Author.

Ian Abbott <abbotti@mev.co.uk>

Author.

Éric Piel <piel@delmic.com>

Author.

Info

05/11/2017 Comedi reference