comedi_get_buffer_read_offset(3)

comedi_get_buffer_read_offset3

Streaming buffer read offset

Usage

#include <comedilib.h>

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

Overview

The function comedi_get_buffer_read_offset is used on a subdevice that has a Comedi command in progress to get the current read 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.

This function replaces comedi_get_buffer_offset and has the same functionality.

Return value

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

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Authors

David Schleef <[email protected]>

Author.

Frank Mori Hess <[email protected]>

Author.

Herman Bruyninckx <[email protected]>

Author.

Bernd Porr <[email protected]>

Author.

Ian Abbott <[email protected]>

Author.

Éric Piel <[email protected]>

Author.

From libcomedi-dev 0.11.0+5-1.3+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.