1IEEE1284_CLAIM(3) Functions IEEE1284_CLAIM(3)
2
3
4
6 ieee1284_claim - claim access to the port
7
9 #include <ieee1284.h>
10
11 int ieee1284_claim(struct parport *port);
12
14 With the exception of ieee1284_get_deviceid(3), ieee1284_claim must be
15 called on an open port before any other libieee1284 function for
16 accessing a device on it.
17
19 E1284_OK
20 Success. Note that, unless the F1284_EXCL flag was specified to
21 start with, the port should be released within a “reasonable”
22 amount of time.
23
24 E1284_NOMEM
25 There is not enough memory.
26
27 E1284_INVALIDPORT
28 The port parameter is invalid (for instance, it might not have been
29 opened yet).
30
31 E1284_SYS
32 There was a problem at the operating system level. The global
33 variable errno has been set appropriately.
34
36 ieee1284_release(3)
37
39 Tim Waugh <twaugh@redhat.com>
40 Author.
41
43 Copyright © 2001-2003 Tim Waugh
44
45
46
47[FIXME: source] 07/28/2020 IEEE1284_CLAIM(3)