comedi_lock — subdevice reservation
#include <comedilib.h>
int comedi_lock( | comedi_t * device, |
unsigned int subdevice) ; |
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
.