tty_insert_f..._push_buffer(9)
πΈ tty_insert_f..._push_buffer(9) πΈ
okay so welcome to the Kernel API Manual bestie, this is the page for tty_insert_f..._push_buffer(9) and we're gonna get into it π
β¨ NAME β¨
tty_insert_flip_string_and_push_buffer β add characters to the tty buffer and push π«Ά
π¦ SYNOPSIS π¦
int tty_insert_flip_string_and_push_buffer (struct tty_port *port ,
const u8 *chars , size_t size );
π ARGUMENTS π
portβ the tty port, iykyk πcharsβ the characters, literally just the characterssizeβ the size β¨
π DESCRIPTION π
okay so this function is giving "two jobs, one icon" β it combines tty_insert_flip_string and tty_flip_buffer_push into one call π₯. The one exception, the little twist, is that it properly holds port->lock π.
bestie listen β this one is to be used only internally (by pty currently). Not for you and your little out-of-tree module, fr fr π
β RETURN β
the number added. that's it, that's the return π«Ά
π SEE ALSO π
Kernel file ./drivers/tty/tty_buffer.c plus the whole squad π
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_buffer_init(9)tty_buffer_set_limit(9)
and that's the page!! π this lil baddie lives in ./drivers/tty, it's dated October 2026, and it will forever be known as tty_insert_f..._push_buffer(9) β mwah πβ¨ππ¦π
π¦ 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