Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

comedi_lock - subdevice reservation

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_lock reserves a subdevice for use by the current process. While the lock is held, no
       other process is allowed to read, write, or configure that subdevice, although other processes can read
       information about the subdevice. The lock is released by comedi_unlock, or when comedi_close is called on
       device.

Name

       comedi_lock - subdevice reservation

Return Value

       If successful, 0 is returned. If there is an error, -1 is returned.

Synopsis

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

See Also