scancode_to_u64(9)
π scancode_to_u64 β a Kernel API Manual moment (section 9, kernel functions, iykyk)
okay so bestie, welcome to the scancode_to_u64(9) page. yes it's giving "tiny function, huge friend group" energy, and honestly? we're obsessed. it does exactly one thing and it does it slayfully. let's get into it π
β¨ NAME β¨
scancode_to_u64 β literally converts a scancode that lives inside a &struct input_keymap_entry. that's the whole vibe. no cap.
πΈ SYNOPSIS πΈ
int scancode_to_u64 (const struct input_keymap_entry *ke , u64 *scancode
);
like, look at her. two args, one int return, zero drama π
π¦ ARGUMENTS π¦
keβ the keymap entry that's holding the scancode you wanna convert. she's the main character here, the source material fr fr.scancodeβ a pointer to the spot where the converted scancode is supposed to land. like, you hand her an address and she fills it in. that's the assignment and she ate. π
π₯ DESCRIPTION π₯
so what is this actually doing? scancode_to_u64 is a version of input_scancode_to_scalar that's specialized for rc-core. that's it. that's the tea. β
like, not me being a whole specialized variant of input_scancode_to_scalar just for rc-core β she's niche and she knows it and that's iconic π
π SEE ALSO π
bestie. the friend group is large. grab a snack, this is the whole group chat and every single one of them is invited:
ir_create_table(9)ir_free_table(9)ir_resize_table(9)ir_update_mapping(9)ir_establish_scancode(9)ir_setkeycode(9)ir_setkeytable(9)ir_lookup_by_scancode(9)ir_getkeycode(9)rc_g_keycode_from_table(9)ir_do_keyup(9)rc_keyup(9)ir_timer_keyup(9)ir_timer_repeat(9)rc_repeat(9)ir_do_keydown(9)rc_keydown(9)rc_keydown_notimeout(9)rc_validate_scancode(9)rc_validate_filter(9)struct rc_filter_attribute(9)show_protocols(9)parse_protocol_change(9)store_protocols(9)show_filter(9)store_filter(9)show_wakeup_protocols(9)store_wakeup_protocols(9)
also the kernel file to peek at: ./drivers/media/rc/rc-main.c β she lives there, go say hi π
π«Ά friendly reminder that this is section 9, kernel API territory β not your cute lil shell command. different universe, same slay.
and that's the page!! mwah π this masterpiece dropped in October 2026, straight outta ./drivers/media/rc β that's our source, that's our version, that's our home address. periodt. π§β¨
π¦ 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