tty_insert_f..._push_buffer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 characters
  • size β€” 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 πŸ‘‘


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