1COMEDI_LOCK(3) COMEDI_LOCK(3)
2
3
4
6 comedi_lock - subdevice reservation
7
9 #include <comedilib.h>
10
11 int comedi_lock (comedi_t * device, unsigned int subdevice);
12
14 The function comedi_lock() reserves a subdevice for use by the current
15 process. While the lock is held, no other process is allowed to read,
16 write, or configure that subdevice, although other processes can read
17 information about the subdevice. The lock is released when
18 comedi_unlock() is called, or the device is closed.
19
21 If sucessful, 0 is returned. If there is an error, -1 is returned.
22
23 28 October 2007 COMEDI_LOCK(3)