ir_free_table(9)
π ir_free_table(9) β the Kernel API Manual glow-up β¨
Okay so bestie, gather round, because we're about to talk about everyone's favorite little cleanup queen in the Kernel API Manual π
This one's a (9) section page, so ykw it's kernel-API business, and honestly? It's giving "short but essential." π
πΈ NAME πΈ
ir_free_table β the function that frees up the memory that got allocated by a scancode table π§Ήβ¨
β SYNOPSIS β
void ir_free_table (struct rc_map *rc_map );
That's it. That's the whole signature. No return value, no drama, no notes. π«Ά
π¦ ARGUMENTS π¦
rc_mapβ the table whose mappings need to be freed π Like, this is the actual scancode table you're handing over so its key mappings can get released.
π DESCRIPTION π
Okay so here's the tea β β this routine frees all the memory that was allocated for the key mappings used by the given scancode table. That's literally the whole job. It shows up, it cleans up, it leaves. Main character energy but make it a deallocator. π₯
No cap, it's a "you allocate it, I'll free it" situation and honestly we love a function that knows its lane. π
Bestie heads-up: this is the cleanup counterpart to the allocation side of things β if you're the one who built the table, you're the one who's gotta call this when you're done. Don't just walk away from it. π
π SEE ALSO π
Okay this list is long, so buckle up, we're going on a tour of the whole RC subsystem ππ¨
- Kernel file
./drivers/media/rc/rc-main.cβ the actual source file this lives in, go read it, it's fine, iykyk scancode_to_u64(9)ir_create_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)
Like, the whole friend group showed up π Every single one. Go say hi.
And that's the page, bestie!! π This little icon was served to you from ./drivers/media/rc, dated October 2026 β take that info, cherish it, and go free your tables responsibly β¨ππ¦
π¦ 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