sparse_keymap_report_event(9)
π sparse_keymap_report_event(9) β the Kernel API Manual glow-up β¨
okay so bestie, welcome to the sparse_keymap_report_event page from the Kernel API Manual, and honestly? she's a baddie. let's get into it π
πΈ NAME πΈ
sparse_keymap_report_event β report the event that corresponds to a given scancode. that's it, that's the whole vibe π¦
β¨ SYNOPSIS β¨
bool sparse_keymap_report_event (struct input_dev *dev , unsigned int
code , unsigned int value , bool autorelease );
look at that signature. she's serving bool, she's taking four args, she's iconic π
π«Ά ARGUMENTS π«Ά
devβ the input device that's using the sparse keymap. like, the main character here πcodeβ the scan code. yes queen, the actual key thing π₯valueβ the value that should be reported. lowkey important: this one is ignored byKE_SWentries, so don't come for her if she doesn't read it πautoreleaseβ signals whether a release event should be emitted forKE_KEYentries right after reporting the press event. for real fr fr: it's ignored by all other entries, so it only matters forKE_KEY, no cap π
π DESCRIPTION π
so what does she even do? this function is used to perform a lookup in an input device that's using a sparse keymap, and then report the corresponding event. that's the whole gig β¨
and the return value? true if the lookup was successful, false otherwise. she's honest like that π
π SEE ALSO π
- Kernel file
./drivers/input/sparse-keymap.cβ go read the source, bestie, it's giving lore π sparse_keymap_entry_from_scancode(9)π¦sparse_keymap_entry_from_keycode(9)π¦sparse_keymap_setup(9)π¦sparse_keymap_report_entry(9)π¦
the whole friend group, together again π«Ά
and that's the page!! mwah π this little baddie lives in ./drivers/input, and the version of this manual page is dated October 2026 β so yeah, she's fresh, she's current, she ate and left no crumbs πβπ
π¦ 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