tty_wait_until_sent(9)
π tty_wait_until_sent(9) β Kernel API Manual energy π
okay so this is the Kernel API Manual page for tty_wait_until_sent(9), and it is literally about waiting for I/O to finish. not me being obsessed with a tiny wait function, but here we are π«Ά.
πΈ NAME πΈ
tty_wait_until_sent β wait for I/O to finish.
β¨ SYNOPSIS β¨
void tty_wait_until_sent (struct tty_struct *tty , long timeout );
π ARGUMENTS π
ttyβ the tty we are waiting for. thatβs the one, bestie πtimeoutβ how long we will wait. the clock is clocking β³
π¦ DESCRIPTION π¦
so the whole vibe is: wait for characters pending in a tty driver to hit the wire, or wait for a timeout to occur (eg due to flow control). thatβs the main-character mission, no cap β¨.
Locking: none. periodt. no locking moment here π .
π SEE ALSO π
Kernel file: ./drivers/tty/tty_ioctl.c β and hereβs the whole SEE ALSO squad, iykyk:
tty_chars_in_buffer(9)tty_write_room(9)tty_driver_flush_buffer(9)tty_unthrottle(9)tty_throttle_safe(9)tty_unthrottle_safe(9)tty_termios_copy_hw(9)tty_termios_hw_change(9)tty_get_char_size(9)tty_get_frame_size(9)tty_set_termios(9)set_termios(9)set_sgttyb(9)tty_change_softcar(9)tty_mode_ioctl(9)
okay bye bestie π«Ά β source/version/date moment: ./drivers/tty, October 2026, tty_wait_until_sent(9). slay π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms