table of contents
COMEDI_LOCK(3) | Comedi reference | COMEDI_LOCK(3) |
NAME¶
comedi_lock - subdevice reservationSYNOPSIS¶
#include <comedilib.h>
int
comedi_lock(comedi_t * device,
unsigned int subdevice);
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.RETURN VALUE¶
If successful, 0 is returned. If there is an error, -1 is returned.AUTHORS¶
David Schleef <ds@schleef.org>Author.
Frank Mori Hess <fmhess@users.sourceforge.net>
Author.
Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
Author.
Bernd Porr <tech@linux-usb-daq.co.uk>
Author.
Ian Abbott <abbotti@mev.co.uk>
Author.
COPYRIGHT¶
Copyright © 1998-2003 David Schleef07/06/2012 | Comedi |