tty_buffer_unlock_exclusive(9)
π tty_buffer_unlock_exclusive(9) β the Kernel API Manual, bestie edition
okay so you're looking at tty_buffer_unlock_exclusive from the Kernel API Manual, and honestly? she's a short one but she matters. this is the "k, i'm done, everyone else can come back in" moment for a tty flip buffer. π
β¨ NAME β¨
tty_buffer_unlock_exclusive β release exclusive access π«Ά
like, you had the keys to the flip buffer, and now you're handing them back. iconic behavior tbh.
πΈ SYNOPSIS πΈ
void tty_buffer_unlock_exclusive (struct tty_port *port );
no return value, no drama, just vibes and a void. π
π¦ ARGUMENTS π¦
portβ the tty port that owns the flip buffer. she's the main character here, the one holding the buffer you're unlocking. π
β DESCRIPTION β
so here's the tea: the buffer work gets restarted if there is data in the flip buffer. that's it, that's the whole move. you unlock, and if there's stuff sitting in the flip buffer waiting, the work kicks back off. no cap. π₯
also see tty_buffer_lock_exclusive β that's the other half of this whole situationship, the "grabbing the exclusive access" side. iykyk. π
π SEE ALSO π
Kernel file ./drivers/tty/tty_buffer.c β go read her, she's the source of truth β¨
and the whole friend group:
tty_buffer_lock_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)
lowkey a whole squad of tty_buffer functions. they all ate, fr fr. π
and that's the page!! π§ source/version vibes come from ./drivers/tty, dated October 2026, and yes the page is literally called tty_buffer_unlock_exclusive(9) β mwah, bye 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