vt_kbd_con_start(9)
π vt_kbd_con_start(9) π
okay bestie, so this is a page from the Kernel API Manual β yes, the kernel, the big one β and the star of the show is vt_kbd_con_start. it's short, it's sweet, and it's doing exactly one job. let's get into it π
β¨ NAME β¨
vt_kbd_con_start β the keyboard side of console start, literally that's the whole thing π¦
β¨ SYNOPSIS β¨
void vt_kbd_con_start (unsigned int console );
so it returns nothing (void) and takes one unsigned int named console. that's it, that's the vibe π
β¨ ARGUMENTS β¨
consoleβ the console. yep. that's the whole description. it's a console arg, it's a console. no notes π
β¨ DESCRIPTION β¨
so what does it do? it handles console start π«Ά. but here's the tea β it's actually a thin wrapper for the VT layer, so that all the kbd knowledge can stay internal. cute little separation-of-concerns moment. we love encapsulation, we really do π
π₯ FIXME (and bestie, this one's important, don't skip it): we eventually need to hold the kbd lock here to protect the LED updating. we can't do it yet becausefn_holdcallsstop_ttyandstart_ttyunder thekbd_event_lock, while normal tty paths don't hold the lock. we probably need to split out an LED lock β but not during an-rcrelease! π no cap, absolutely not touching that mid-rc, that's how you get main character energy in a bad way π
β¨ SEE ALSO β¨
the kernel file lives at ./drivers/tty/vt/keyboard.c β go say hi to it π§
vt_get_leds(9)vt_set_led_state(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_get_kbd_mode_bit(9)vt_set_kbd_mode_bit(9)vt_clr_kbd_mode_bit(9)
like, the whole keyboard.c friend group showed up. iconic π
and that's the page!! sign-off time: this absolute legend of a manpage is brought to you by ./drivers/tty/vt, dated October 2026 π
π go forth and start those consoles, 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