tty_buffer_free_all(9)
πΈ NAME: tty_buffer_free_all(9) πΈ
okay bestie, this one is from the Kernel API Manual, and the whole vibe is literally βfree buffers used by a tty.β π
β¨ SYNOPSIS β¨
void tty_buffer_free_all (struct tty_port *port );
π ARGUMENTS π
portβ the tty port youβre freeing from. thatβs the one, no cap π«Ά
π¦ DESCRIPTION π¦
This function removes all the buffers pending on a tty β whether theyβre queued with data or just chilling in the free ring. π§Ήβ¨
It must be called when the tty is no longer in use. like, do not come for this function while the tty is still main-character-ing, okay? π
π SEE ALSO π
Kernel file ./drivers/tty/tty_buffer.c is the spot, and hereβs the whole squad:
tty_buffer_lock_exclusive(9)tty_buffer_unlock_exclusive(9)tty_buffer_space_avail(9)tty_buffer_alloc(9)tty_buffer_free(9)tty_buffer_flush(9)__tty_buffer_request_room(9)tty_prepare_flip_string(9)tty_ldisc_receive_buf(9)flush_to_ldisc(9)tty_flip_buffer_push(9)tty_insert_flip_string_and_push_buffer(9)tty_buffer_init(9)tty_buffer_set_limit(9)
mwah π signed off from the ./drivers/tty source/version, dated October 2026 β catch you in the Kernel API Manual, bestie ππ
π¦ 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