vt_get_kbd_mode_bit(9)
π 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:
vt_get_leds(9)vt_set_led_state(9)vt_kbd_con_start(9)vt_kbd_con_stop(9)vt_do_diacrit(9)vt_do_kdskbmode(9)vt_do_kdskbmeta(9)vt_do_kdgkbmeta(9)vt_reset_unicode(9)vt_get_shift_state(9)vt_reset_keyboard(9)vt_set_kbd_mode_bit(9)vt_clr_kbd_mode_bit(9)
mwah π source/version: ./drivers/tty/vt Β· date: October 2026 Β· page: vt_get_kbd_mode_bit(9) β byeee, slay π«Άβ¨
π¦ 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