ir_lookup_by_scancode(9)
π ir_lookup_by_scancode(9) π
okay so bestie, this page is from the Kernel API Manual β and itβs literally about ir_lookup_by_scancode, which is giving βfind the mapping by scancodeβ energy. π¦
πΈ NAME πΈ
ir_lookup_by_scancode β locate mapping by scancode. periodt.
β¨ SYNOPSIS β¨
unsigned int ir_lookup_by_scancode (const struct rc_map *rc_map , u64
scancode );
π ARGUMENTS π
rc_mapβ thestruct rc_mapto search. this is the table bestie, fr fr. π«Άscancodeβ scancode to look for in the table. yep, thatβs the thing youβre hunting for. π
π¦ DESCRIPTION π¦
this routine performs binary search in RC keykeymap table for given scancode. no cap, itβs just doing a binary search in that RC keykeymap table for the scancode you hand it. πΈ
π₯ RETURN π₯
it gives you the index in the table, or -1U if not found. like, found it? hereβs the index. not found? -1U, bye. π
π SEE ALSO π
the kernel file is ./drivers/media/rc/rc-main.c β and the whole squad is: 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_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). π§
k byeee π β source/version: ./drivers/media/rc, date: October 2026.
π¦ 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