logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

comedi_set_read_subdevice - set streaming input 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_read_subdevice sets subdevice as the current “read” subdevice if the subdevice
       supports streaming input commands.

       No action is performed if subdevice is already the current “read” subdevice.

       Changes are local to the openfiledescription for this device and have no effect on other open file
       descriptions for the underlying device node.

Name

       comedi_set_read_subdevice - set streaming input subdevice

Return Value

       On success, 0 is returned. On failure, -1 is returned.

Status

       Works for Linux "in-tree" Comedi since kernel version 3.19.

Synopsis

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

See Also