n_tty_kick_worker(9)
π n_tty_kick_worker β¨
okay bestie, welcome to the Kernel API Manual π β this is the page for n_tty_kick_worker, and honestly it's a little baddie with one job and it does it slayfully π
πΈ NAME πΈ
n_tty_kick_worker β start input worker (if required) π«Ά
like, if required, she's not gonna do it for no reason, iykyk β¨
π¦ SYNOPSIS π¦
void n_tty_kick_worker (const struct tty_struct *tty );
yes the spacing is exactly like that, don't @ me, i copied it verbatim π
π ARGUMENTS π
ttyβ terminal π (that's it, that's the whole argument, she's lowkey uncomplicated)
π DESCRIPTION π
okay so the whole vibe here: this function re-schedules the flip buffer work if it may have stopped π₯ like, if the work has gone all sleepy and stopped doing its thing, this is the little nudge that gets it back on its feet. main character energy, fr fr π«
π Locking π
this part is important, don't skip it π β the caller needs to be holding the right lock, and it's giving two valid situations:
- Caller holds exclusive
termios_rwsem, or - the
n_tty_read/consumer path holds the non-exclusivetermios_rwsemπΈ
so like, one of those two, okay? pick one, hold it properly, and you're golden β¨
ngl bestie, don't call this without the right lock β the locking note is literally right there for a reason π
β SEE ALSO β
the whole friend group π«Ά β all of these live in the kernel file ./drivers/tty/n_tty.c:
n_tty_write_wakeup(9)put_tty_queue(9)reset_buffer_flags(9)n_tty_flush_buffer(9)is_utf8_continuation(9)is_continuation(9)do_output_char(9)process_output(9)process_output_block(9)__process_echoes(9)add_echo_byte(9)echo_move_back_col(9)echo_set_canon_col(9)echo_erase_tab(9)echo_char_raw(9)echo_char(9)finish_erasing(9)eraser(9)isig(9)n_tty_receive_break(9)n_tty_receive_overrun(9)n_tty_receive_parity_error(9)n_tty_receive_char_flow_ctrl(9)n_tty_receive_char(9)n_tty_receive_buf_common(9)n_tty_set_termios(9)n_tty_close(9)n_tty_open(9)copy_from_read_buf(9)canon_copy_from_read_buf(9)job_control(9)n_tty_read(9)n_tty_write(9)n_tty_poll(9)n_tty_inherit_ops(9)
and that's the page, bestie π huge slay, go forth and kick that worker π§ββοΈ
source: ./drivers/tty Β· dated: October 2026 Β· manual: Kernel API Manual πΈ mwah, bye π
π¦ 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