__tty_buffer_request_room(9)
π __tty_buffer_request_room(9) π
okay so bestie, weβre in the Kernel API Manual, and this page is literally about making room in a tty buffer. itβs giving βmake some spaceβ energy, and Iβm obsessed. π¦
β¨ NAME β¨
__tty_buffer_request_room β grow tty buffer if needed
πΈ SYNOPSIS πΈ
int __tty_buffer_request_room (struct tty_port *port , size_t size ,
bool flags );
π ARGUMENTS π
portβ tty port, aka the tty port in question πsizeβ size desired; the amount of room youβre asking for β¨flagsβ buffer has to store flags along character data; this tells it whether flags need to ride along with the character data π«Ά
π¦ DESCRIPTION π¦
okay so the mission is simple: make at least size bytes of linear space available for the tty buffer. thatβs the whole vibe. π
and hereβs the plot twist: it will change over to a new buffer if the current buffer is encoded as TTY_NORMAL (so has no flags buffer) and the new buffer requires a flags buffer. main character buffer-swap energy, fr fr. π₯
β RETURN β
the size we managed to find. thatβs it, thatβs the return value β the size we managed to find. periodt. ππ
π SEE ALSO π
Kernel file ./drivers/tty/tty_buffer.c β and the whole crew is here:
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_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)
cute little sign-off: from the ./drivers/tty source/version, dated October 2026, for __tty_buffer_request_room(9) β bye bestie, slay your buffers π
π«Ά
π¦ 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