1IEEE1284_SET_TIMEOUT(3) Functions IEEE1284_SET_TIMEOUT(3)
2
3
4
6 ieee1284_set_timeout - modify inactivity timeout
7
9 #include <ieee1284.h>
10
11 struct timeval *ieee1284_set_timeout(struct parport *port,
12 struct timeval *timeout);
13
15 This function sets a new value for the inactivity timeout (used for
16 block transfer functions), and returns the old value.
17
18 The port must be claimed.
19
20 The timeout parameter may be NULL, in which case the old value is left
21 unchanged.
22
24 This function returns a pointer to a struct timeval representing the
25 old value. This uses the same storage as the port structure, and so is
26 not valid after closing the port.
27
29 Note that this is an inactivity time-out, not an absolute time-out.
30 During a data transfer, if the peripheral is inactive for the length of
31 time specified then the host gives up.
32
33 It is also advisory; no guarantee is made that the transfer will ever
34 complete.
35
37 Tim Waugh <twaugh@redhat.com>
38 Author.
39
41 Copyright © 2001-2003 Tim Waugh
42
43
44
45[FIXME: source] 07/21/2022 IEEE1284_SET_TIMEOUT(3)