ir_lookup_by_scancode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the struct rc_map to 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