ieee1284_set_timeout (3)
Leading comments
Title: ieee1284_set_timeout Author: Tim Waugh <twaugh@redhat.com> Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/> Date: 09/18/2007 Manual: Functions Source:
NAME
ieee1284_set_timeout - modify inactivity timeoutSYNOPSIS
#include <ieee1284.h>
- struct timeval *ieee1284_set_timeout(struct parport *port, struct timeval *timeout);
DESCRIPTION
The port must be claimed.
The timeout parameter may be NULL, in which case the old value is left unchanged.
RETURN VALUE
This function returns a pointer to a struct timeval representing the old value. This uses the same storage as the port structure, and so is not valid after closing the port.
NOTES
Note that this is an inactivity time-out, not an absolute time-out. During a data transfer, if the peripheral is inactive for the length of time specified then the host gives up.
It is also advisory; no guarantee is made that the transfer will ever complete.
AUTHOR
Tim Waugh <twaugh@redhat.com>
- Author.