ir_setkeytable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ir_setkeytable(9) ✨

okay so bestie, welcome to the ir_setkeytable page β€” it lives in the Kernel API Manual and honestly it's a whole vibe. it's part of the kernel's remote-control (rc) fam and it's way less scary than the name makes it sound. let's get into it 🫢


🌸 NAME 🌸

ir_setkeytable β€” sets several entries in the scancode->keycode table πŸ’…

like, yes, plural. several. it's the batch girlie of table-setting. ✨


πŸŽ€ SYNOPSIS πŸŽ€

int ir_setkeytable (struct rc_dev *dev , const struct rc_map *from );

that's it. two args, one int coming back at you. slay. πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the struct rc_dev device descriptor. the main character, basically πŸ‘‘
  • from β€” the struct rc_map you're copying entries from. it's giving "source of truth" energy 🌈

πŸ’œ DESCRIPTION πŸ’œ

no cap, this routine is used to handle table initialization. that's the whole job description and she executes it flawlessly. 🧚

when you need to fill up the scancode->keycode table, ir_setkeytable is the one you call. periodt.


⭐ RETURN ⭐

  • -ENOMEM β€” returned if all keycodes could not be inserted 😭 like, it ran out of memory mid-way and didn't get everyone in. tragic.
  • otherwise zero β€” everything made it in. iconic. πŸ”₯
real talk: -ENOMEM literally means not all of them landed, so don't go assuming a partial failure is a full success. she told you. πŸ™ˆ

πŸ” SEE ALSO πŸ”

kernel file ./drivers/media/rc/rc-main.c, plus this entire friend group right here β€” pull up a chair:

iykyk πŸ¦‹


and that's the whole page bestie!! this one's straight outta ./drivers/media/rc, dated October 2026 β€” so yes, it's recent, it's current, it ate and left no crumbs. go forth and initialize those tables πŸ’…βœ¨πŸŽ€πŸ’–

πŸ“¦ where this page comes from