IEEE1284_SET_TIMEOUT(3)
β¨ IEEE1284_SET_TIMEOUT β¨
okay bestie, we're in section 3 of the Functions manual, and today's main character is ieee1284_set_timeout π
πΈ NAME πΈ
ieee1284_set_timeout β modify inactivity timeout
π SYNOPSIS π
#include <ieee1284.h>
struct timeval *ieee1284_set_timeout(struct parport *port,
struct timeval *timeout);
π¦ DESCRIPTION π¦
So this function sets a brand new value for the inactivity timeout β the one that block transfer functions use β and then hands you back the old value. it's giving "new one in, old one out" π₯
The port must be claimed. no claim, no service, periodt.
And listen β the timeout parameter can be NULL, and if it is, the old value just stays exactly as it was, untouched, unbothered, minding its own business π
π RETURN VALUE π
This function returns a pointer to a struct timeval that represents the old value. and here's the tea: it uses the same storage as the port structure, so it is not valid after closing the port. like, do not go using that pointer after you close the port, bestie, it will not end well π
π NOTES π
Note that this is an inactivity time-out, not an absolute time-out. big difference, iykyk.
During a data transfer, if the peripheral is inactive for the length of time specified, then the host gives up. that's it, that's the vibe check. β
Also it's advisory β no guarantee is made that the transfer will ever complete. so like, lowkey it might just... never finish. no cap. π
π AUTHOR π
Tim Waugh <twaugh@redhat.com>
- Author.
π COPYRIGHT π
Copyright Β© 2001-2003 Tim Waugh
and that's the whole page, bestie!! π«Ά this was the IEEE1284_SET_TIMEOUT(3) page, dated 09/18/2007, from the Functions manual β slay, ate, no crumbs left, mwah π
β¨π
π¦ where this page comes from
- alpine 3.24: libieee1284-doc 0.2.11-r4 Β· GPL-2.0-or-later
- debian bookworm: libieee1284-3-dev 0.2.11-14
- debian trixie: libieee1284-3-dev 0.2.11-14.1+b1
- opensuse-leap 16.0: libieee1284-devel 0.2.11-bp160.1.13 Β· GPL-2.0-or-later AND MIT
- opensuse-leap 16.0: libieee1284-devel 0.2.11-bp160.1.13 Β· GPL-2.0-or-later AND MIT
- opensuse-leap 16.0: libieee1284-devel 0.2.11-bp160.1.13 Β· GPL-2.0-or-later AND MIT
- opensuse-leap 16.0: libieee1284-devel 0.2.11-bp160.1.13 Β· GPL-2.0-or-later AND MIT
- ubuntu jammy: libieee1284-3-dev 0.2.11-14build2
- ubuntu noble: libieee1284-3-dev 0.2.11-14.1build1
- ubuntu questing: libieee1284-3-dev 0.2.11-14.1build1
- ubuntu resolute: libieee1284-3-dev 0.2.11-14.1build2
- ubuntu stonking: libieee1284-3-dev 0.2.11-15 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms