ir_resize_table(9)
π ir_resize_table(9) β like, the Kernel API Manual page, but make it make sense
okay bestie, welcome to the Kernel API Manual entry for ir_resize_table(9) β yes that's the actual title, no I'm not being extra, it's literally what it says at the top of the page. grab a strawberry drink π and let's get into it.
β¨ NAME β¨
ir_resize_table β resizes a scancode table if necessary
like... it resizes the table if necessary, okay? it's not out here resizing for fun. it checks first. consent is key π
π¦ SYNOPSIS π¦
int ir_resize_table (struct rc_dev *dev , struct rc_map *rc_map , gfp_t
gfp_flags );
that's the whole signature, character for character, don't @ me about the spacing, that's just how the page is written πβ¨
π ARGUMENTS π
devβ therc_devdevice. the whole device vibe, the main character of this operation πrc_mapβ therc_mapto resize. this is the table we're about to glow up πΈgfp_flagsβ gfp flags to use when allocating memory. the memory-allocation settings, hand them over and let it cook π₯
π DESCRIPTION π
so here's the tea β β this routine will shrink the rc_map if it has lots of unused entries, and grow it if it's full.
that's it. that's the whole thing. it's giving β¨adaptiveβ¨. not me being obsessed with a function that just does the sensible thing π
lowkey important: it shrinks when there's a bunch of unused entries and grows when the table is full β those are the two conditions, straight from the page, no cap π«Ά
π₯ RETURN π₯
zero on success, or a negative error code π
so like, 0 = slay, we ate. negative = it did not eat. check your error code bestie, it's literally telling you something π
π SEE ALSO π
the full squad, all of them, in order, zero skips π:
Kernel file ./drivers/media/rc/rc-main.c scancode_to_u64(9), ir_create_table(9), ir_free_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, that's a whole group chat and every single one of them is invited π§β¨
and that's the page!! π source is ./drivers/media/rc, dated October 2026, and the manual is ir_resize_table(9) because that's who we've been talking about this entire time π mwah, go resize something responsibly, ily π«Άπ
π¦ 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