tty_buffer_lock_exclusive(9)
π tty_buffer_lock_exclusive(9) π
okay bestie, welcome to the Kernel API Manual entry for the function that's lowkey the bouncer for your flip buffer β and yes, it's giving main character energy. π«Ά
πΈ NAME πΈ
tty_buffer_lock_exclusive β gain exclusive access to buffer
β¨ SYNOPSIS β¨
void tty_buffer_lock_exclusive (struct tty_port *port );
π ARGUMENTS π
portβ the tty port owning the flip buffer
π¦ DESCRIPTION π¦
Okay so here's the tea: tty_buffer_lock_exclusive guarantees safe use of the tty_ldisc_ops.receive_buf method by excluding the buffer work and any pending flush from using the flip buffer. no cap, that's the whole point. π
Data can continue to be added concurrently to the flip buffer from the driver side β so the driver side is still allowed to do its thing, okay? It's not blocked, and that's iconic.
Also see tty_buffer_unlock_exclusive.
π SEE ALSO π
Kernel file ./drivers/tty/tty_buffer.c
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)tty_buffer_set_limit(9)
π that's the page, bestie β source/version ./drivers/tty, dated October 2026, for tty_buffer_lock_exclusive(9). periodt. π«Άβ¨
π¦ 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