ir_resize_table(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the rc_dev device. the whole device vibe, the main character of this operation πŸ‘‘
  • rc_map β€” the rc_map to 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