tty_buffer_set_limit(9)
π tty_buffer_set_limit(9) β NAME π
okay so welcome to tty_buffer_set_limit(9) from the Kernel API Manual, bestie π
this page is literally about one little function with main character energy.
tty_buffer_set_limit β change the tty buffer memory limit. periodt.
β¨ SYNOPSIS β¨
here's the exact fit, no edits, no cap:
int tty_buffer_set_limit (struct tty_port *port , int limit );
π ARGUMENTS π
portβ the tty port you're changing π«Άlimitβ the memory limit you're setting β¨
π DESCRIPTION π
This changes the tty buffer memory limit. iconic behavior, honestly.
β οΈ and bestie, this part is a must: it must be called before the other tty buffer functions are used. no cap, that's the vibe check.
π¦ SEE ALSO π¦
Kernel file ./drivers/tty/tty_buffer.c is the source file in question, and here's the whole friend group:
tty_buffer_lock_exclusive(9)tty_buffer_unlock_exclusive(9)tty_buffer_space_avail(9)tty_buffer_free_all(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)
mwah π β cute sign-off from the ./drivers/tty source, October 2026 edition, 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