ir_create_table(9)
π ir_create_table(9) β like, the whole kernel API manual moment
okay so bestie, welcome to ir_create_table(9), straight out of the kernel API manual. yes we're in that part of the docs, and yes it slaps. this is the function that gets your scancode table looking cute and ready for business π
β¨ NAME β¨
ir_create_table β initializes a scancode table. that's it, that's the whole vibe. it sets the table UP π
πΈ SYNOPSIS πΈ
int ir_create_table (struct rc_dev *dev , struct rc_map *rc_map , const
char *name , u64 rc_proto , size_t size );
no cap, that's the exact signature, don't come for me about the line break, that's how it's printed in the manual π
π¦ ARGUMENTS π¦
devβ therc_devdevice. your device bestie, the whole reason we're here π«Άrc_mapβ therc_mapto initialize. this is the one getting the glow-up β¨nameβ name to assign to the table. give it a name, it deserves one πrc_protoβ ir type to assign to the new table. the personality, basically πsizeβ initial size of the table. how much room we're giving it to start π₯
π§ DESCRIPTION π§
so like, this routine will initialize the rc_map and it will allocate memory to hold at least the specified number of elements. at least!! meaning it might ball out and grab even more, but it's never gonna shortchange you π«Ά
literally its whole job. init the map, grab the memory, done. iconic behavior honestly π
β RETURN β
zero on success, or a negative error code π so like, 0 = slay, anything negative = we have a situation π
π SEE ALSO π
the kernel file ./drivers/media/rc/rc-main.c says hi, and also these absolute main characters:
scancode_to_u64(9), ir_free_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 fr fr π
ngl bestie, that see-also list is giving "group chat with 28 members and everyone's talking at once" but every single one of them is valid π
and that's the page!! π¦ big sign-off energy: this one lives under ./drivers/media/rc and the whole thing is dated October 2026 β so yeah, future-coded but still ir_create_table(9) to the very end. periodt πβ¨
π¦ 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