tty_chars_in_buffer(9)
π NAME π
okay bestie, this is tty_chars_in_buffer(9) from the Kernel API Manual β¨ and the name literally says it all: tty_chars_in_buffer β characters pending, periodt π
β¨ SYNOPSIS β¨
the signature is exactly this, no cap:
unsigned int tty_chars_in_buffer (struct tty_struct *tty );
π ARGUMENTS π
ttyβ terminal, bestie π«Ά
π RETURN π
it returns the number of bytes of data in the device private output queue β¨
lowkey important: if no private method is supplied, itβs assumed thereβs no queue on the device π
π¦ SEE ALSO π¦
- Kernel file:
./drivers/tty/tty_ioctl.c tty_write_room(9)tty_driver_flush_buffer(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)
thatβs the whole page, bestie π«Ά source/version: ./drivers/tty; date: October 2026; and yes, itβs tty_chars_in_buffer(9) from the Kernel API Manual. byeee ππ
π¦ 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