ieee1284_set_timeout(3)

ieee1284_set_timeout3

Modify inactivity timeout

Usage

#include <ieee1284.h>

struct timeval *ieee1284_set_timeout(struct parport *port, struct timeval *timeout);

Overview

This function sets a new value for the inactivity timeout (used for block transfer functions), and returns the old value.

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.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1–4.0
  2. 5.0–13
  3. Arch

Author

Tim Waugh <[email protected]>

Author.

From libieee1284 0.2.11-19 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.