Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.sao.ru/hq/sts/linux/comedi/doc/func-ref-comedi-get-buffer-offset.html
Дата изменения: Unknown
Дата индексирования: Sat Sep 11 21:03:27 2010
Кодировка:

Поисковые слова: coma
comedi_get_buffer_offset

comedi_get_buffer_offset

Name

comedi_get_buffer_offset -- streaming buffer status

Synopsis

#include <comedilib.h>

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

Description

The function comedi_mark_buffer_read() is used on a subdevice that has a Comedi command in progress. This function returns the offset of the read pointer in the streaming buffer. This offset is only useful for memory mapped buffers. If there is an error, -1 is returned.