Blame doc/ieee1284_set_timeout.3
Branch: d36e9bbc4a45c7d92356b2293d966924a4c2282e
Packit
d36e9b
.\" Title: ieee1284_set_timeout
Packit
d36e9b
.\" Author: Tim Waugh <twaugh@redhat.com>
Packit
d36e9b
.\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
Packit
d36e9b
.\" Date: 09/18/2007
Packit
d36e9b
.\" Manual: Functions
Packit
d36e9b
.\" Source:
Packit
d36e9b
.\"
Packit
d36e9b
.TH "IEEE1284_SET_TIMEOUT" "3" "09/18/2007" "" "Functions"
Packit
d36e9b
.\" disable hyphenation
Packit
d36e9b
.nh
Packit
d36e9b
.\" disable justification (adjust text to left margin only)
Packit
d36e9b
.ad l
Packit
d36e9b
.SH "NAME"
Packit
d36e9b
ieee1284_set_timeout \- modify inactivity timeout
Packit
d36e9b
.SH "SYNOPSIS"
Packit
d36e9b
.sp
Packit
d36e9b
.ft B
Packit
d36e9b
.nf
Packit
d36e9b
#include <ieee1284.h>
Packit
d36e9b
.fi
Packit
d36e9b
.ft
Packit
d36e9b
.HP 37
Packit
d36e9b
.BI "struct timeval *ieee1284_set_timeout(struct\ parport\ *" "port" ", struct\ timeval\ *" "timeout" ");"
Packit
d36e9b
.SH "DESCRIPTION"
Packit
d36e9b
.PP
Packit
d36e9b
This function sets a new value for the inactivity timeout (used for block transfer functions), and returns the old value.
Packit
d36e9b
.PP
Packit
d36e9b
The
Packit
d36e9b
\fIport\fR
Packit
d36e9b
must be claimed.
Packit
d36e9b
.PP
Packit
d36e9b
The
Packit
d36e9b
\fItimeout\fR
Packit
d36e9b
parameter may be
Packit
d36e9b
\fBNULL\fR, in which case the old value is left unchanged.
Packit
d36e9b
.SH "RETURN VALUE"
Packit
d36e9b
.PP
Packit
d36e9b
This function returns a pointer to a
Packit
d36e9b
struct timeval
Packit
d36e9b
representing the old value. This uses the same storage as the
Packit
d36e9b
\fIport\fR
Packit
d36e9b
structure, and so is not valid after closing the port.
Packit
d36e9b
.SH "NOTES"
Packit
d36e9b
.PP
Packit
d36e9b
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.
Packit
d36e9b
.PP
Packit
d36e9b
It is also advisory; no guarantee is made that the transfer will ever complete.
Packit
d36e9b
.SH "AUTHOR"
Packit
d36e9b
.PP
Packit
d36e9b
\fBTim Waugh\fR <\&twaugh@redhat.com\&>
Packit
d36e9b
.sp -1n
Packit
d36e9b
.IP "" 4
Packit
d36e9b
Author.
Packit
d36e9b
.SH "COPYRIGHT"
Packit
d36e9b
Copyright \(co 2001\-2003 Tim Waugh
Packit
d36e9b
.br
Packit
d36e9b