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_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