logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

comedi_set_buffer_size - streaming buffer size of subdevice

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_set_buffer_size changes the size of the streaming buffer for the subdevice specified
       by device and subdevice. The buffer size will be set to size bytes, rounded up to a multiple of the
       virtual memory page size. The virtual memory page size can be determined using sysconf(_SC_PAGE_SIZE).

       This function does not require special privileges. However, it is limited to a (adjustable) maximum
       buffer size, which can be changed by a privileged user calling comedi_set_max_buffer_size, or running the
       program comedi_config.

Name

       comedi_set_buffer_size - streaming buffer size of subdevice

Return Value

       On success, comedi_set_buffer_size returns the new buffer size in bytes. On failure, -1 is returned.

Synopsis

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

See Also