ir_getkeycode(9)
β¨ ir_getkeycode(9) β¨
okay so bestie, welcome to the ir_getkeycode page from the Kernel API Manual β yes that's the manual name, we're folding it in instead of doing the boring header thing π
this one's short and sweet but it's lowkey doing important work, so pay attention π«Ά
πΈ NAME πΈ
ir_getkeycode β literally just get a keycode from the scancode->keycode table π
π SYNOPSIS π
int ir_getkeycode (struct input_dev *idev , struct input_keymap_entry
*ke );
that's the whole signature, no cap β¨
π¦ ARGUMENTS π¦
idevβ thestruct input_devdevice descriptor, aka the device we're poking at πkeβ the Input keymap entry, the thing we're working with π«
π DESCRIPTION π
so like, this routine is used to handle the evdev EVIOCGKEY ioctl. that's the whole description, she's a one-liner and she ate π₯
π RETURN π
bestie it always returns zero β every single time, no surprises, no drama, iconic behavior honestly π
β SEE ALSO β
the whole friend group π everybody below is from the kernel file ./drivers/media/rc/rc-main.c:
scancode_to_u64(9)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)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)
like, that's a whole squad fr fr π§
and that's the page!! sign-off time π this little beauty lives in ./drivers/media/rc and the version/date on it is October 2026 β screenshot it, memorize it, tell your friends, 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