comedi_mark_buffer_read

Name

comedi_mark_buffer_read -- streaming buffer status

Synopsis

#include <comedilib.h>

int comedi_mark_buffer_read(comedi_t * device, unsigned int subdevice, unsigned int num_bytes);

Description

The function comedi_mark_buffer_read() is used on a subdevice that has a Comedi command in progress. This function can be used to indicate that the next num_bytes bytes in the buffer are no longer needed and may be discarded. If there is an error, -1 is returned.