1COMEDI_LOCK(3)                 Comedi reference                 COMEDI_LOCK(3)
2
3
4

NAME

6       comedi_lock - subdevice reservation
7

SYNOPSIS

9       #include <comedilib.h>
10
11       int comedi_lock(comedi_t * device, unsigned int subdevice);
12

DESCRIPTION

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 by comedi_unlock,
18       or when comedi_close is called on device.
19

RETURN VALUE

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

AUTHORS

24       David Schleef <ds@schleef.org>
25           Author.
26
27       Frank Mori Hess <fmhess@users.sourceforge.net>
28           Author.
29
30       Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
31           Author.
32
33       Bernd Porr <tech@linux-usb-daq.co.uk>
34           Author.
35
36       Ian Abbott <abbotti@mev.co.uk>
37           Author.
38
39       Éric Piel <piel@delmic.com>
40           Author.
41
43       Copyright © 1998-2003 David Schleef
44       Copyright © 2001-2003, 2005, 2008 Frank Mori Hess
45       Copyright © 2002-2003 Herman Bruyninckx
46       Copyright © 2012 Bernd Porr
47       Copyright © 2012 Ian Abbott
48       Copyright © 2012, 2015 Éric Piel
49
50       This document is part of Comedilib. In the context of this document,
51       the term "source code" as defined by the license is interpreted as the
52       XML source.
53
54       This library is free software; you can redistribute it and/or modify it
55       under the terms of the GNU Lesser General Public License as published
56       by the Free Software Foundation, version 2.1 of the License.
57
58       This library is distributed in the hope that it will be useful, but
59       WITHOUT ANY WARRANTY; without even the implied warranty of
60       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
61       General Public License for more details.
62
63       You should have received a copy of the GNU Lesser General Public
64       License along with this library; if not, write to the Free Software
65       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
66       USA.
67
68
69
70
71Comedi                            05/11/2017                    COMEDI_LOCK(3)
Impressum