vt_do_kdskbmode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vt_do_kdskbmode(9) β€” from the Kernel API Manual, bestie

okay so picture this: a kernel function that handles the set keyboard mode ioctl, and it's living in the Kernel API Manual chapter. no cap, she's a real one. let's get into it πŸŽ€


✨ SYNOPSIS ✨

int vt_do_kdskbmode (unsigned int console , unsigned int arg );

literally the whole signature, right there 🫢 two unsigned ints and she returns an int. iconic brevity.


🌸 ARGUMENTS 🌸

  • console β€” the console you wanna use, bestie. that's the one. the console in question πŸ’…
  • arg β€” the mode you're requesting. like, the whole vibe you want the keyboard mode to be in ✨

πŸ’– DESCRIPTION πŸ’–

okay so what she does is update the keyboard mode bits β€” and the key detail here (pun intended, sorry 😭) is that she does it while holding the correct locks. no cap, that's the important part. locks are held, bits are updated, everyone goes home happy.

and then: she returns 0 for success, or an error code if things didn't go great. that's it. that's the whole function. main character energy, honestly πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file in question is:

./drivers/tty/vt/keyboard.c

and here's her whole friend group, fr fr β€” go say hi:


πŸ“ friendly reminder: she only touches the keyboard mode bits while holding the correct locks β€” don't try to speedrun that part, ngl.

and that's the page!! πŸ’œ this whole thing comes from the ./drivers/tty/vt corner of the world, dated October 2026, and yes the man page name is vt_do_kdskbmode(9) β€” write it down, bestie, there will be a quiz 🌈⭐

πŸ“¦ where this page comes from