n_tty_kick_worker(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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-exclusive termios_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:


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