vt_get_kbd_mode_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to the vt_get_kbd_mode_bit(9) page from the Kernel API Manual β€” yes, that’s the manual name, folded in right here so we can get into the good stuff πŸ’–. This function is literally here to read keyboard status bits. iconic behavior, no cap ✨.

✨ SYNOPSIS ✨

int vt_get_kbd_mode_bit (unsigned int console , int bit );

🫢 ARGUMENTS 🫢

  • console β€” the console to read from πŸ–₯️
  • bit β€” the mode bit to read πŸ”

πŸ’… DESCRIPTION πŸ’…

So what does it do? It reports back a vt mode bit. That’s the whole main-character job πŸ’«.

But here’s the plot twist, bestie: it does this without locking, so the caller must be sure that there are no synchronization needs 😭. Like, fr fr, that part is not a vibe you can skip β€” the caller has to be sure. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/tty/vt/keyboard.c is the source-file bestie to peek at πŸ‘€, and the whole reference friend group is:


mwah πŸ’‹ source/version: ./drivers/tty/vt Β· date: October 2026 Β· page: vt_get_kbd_mode_bit(9) β€” byeee, slay 🫢✨

πŸ“¦ where this page comes from