tty_driver_flush_buffer(9)
π NAME π
okay so bestie, welcome to the tty_driver_flush_buffer(9) page β weβre in the Kernel API Manual, and yes, the manual name is folded in right here instead of copying the header line. cute, right? π
tty_driver_flush_bufferβ discard internal buffer
β¨ SYNOPSIS β¨
void tty_driver_flush_buffer (struct tty_struct *tty );
πΈ ARGUMENTS πΈ
ttyβ the terminal. thatβs it, thatβs the whole argument, and sheβs the main character here π
π¦ DESCRIPTION π¦
Bestie, this function says: discard the internal output buffer for this device. Thatβs the assignment. π«Ά
If no method is provided, then either the buffer cannot be hardware flushed or there is no buffer driver side. No cap β thatβs exactly the caveat the page drops, so donβt act surprised. π
π₯ SEE ALSO π₯
the squad, in the exact order the page gives it:
- Kernel file β
./drivers/tty/tty_ioctl.c tty_chars_in_buffer(9)tty_write_room(9)tty_unthrottle(9)tty_throttle_safe(9)tty_unthrottle_safe(9)tty_wait_until_sent(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)
mwah π this cutie is from ./drivers/tty, dated October 2026 β source/version and date said with love, and thatβs the sign-off, periodt. ππ
π¦ 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