sparse_keym...rom_scancode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

sparse_keymap_entry_from_scancode β€” bestie, this is the one that does the sparse keymap lookup πŸ’…

(it lives in the Kernel API Manual, iykyk πŸŽ€)


🌸 SYNOPSIS 🌸

struct key_entry * sparse_keymap_entry_from_scancode (struct input_dev
*dev , unsigned int code );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the input device that's out here using a sparse keymap 🫢
  • code β€” the scan code, literally just the scan code

πŸ’– DESCRIPTION πŸ’–

okay so picture this: this function is the one you call when you wanna do a struct key_entry lookup on an input device that's running a sparse keymap. that's it, that's the whole vibe ✨

like, it's giving "find me the key entry for this thing" energy, no cap πŸ”₯


🌈 SEE ALSO 🌈

go read the whole friend group, they're all iconic πŸ‘‘


fr fr that's the whole page, and it slayed πŸ’€βœ¨

signing off from ./drivers/input, October 2026, mwah πŸŽ€πŸ’‹

πŸ“¦ where this page comes from