ir_update_mapping(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ir_update_mapping(9) β€” Kernel API Manual energy

okay so real talk, bestie: this is ir_update_mapping, living its best life in the Kernel API Manual (yes, section 9, we love a kernel-internals moment). It's the lil function that swaps out one keycode in the scancodeβ†’keycode table, and honestly? iconic. πŸŽ€


✨ NAME ✨

ir_update_mapping β€” set a keycode in the scancode->keycode table πŸ¦‹


🌸 SYNOPSIS 🌸

unsigned int ir_update_mapping (struct rc_dev *dev , struct rc_map
*rc_map , unsigned int index , unsigned int new_keycode );

that's the whole vibe, no cap. four args, one unsigned int coming back at you. ✨


πŸ’– ARGUMENTS πŸ’–

  • dev β€” the struct rc_dev device descriptor. it's giving "who dis" but for your remote control device πŸ‘‘
  • rc_map β€” the scancode table that's about to get adjusted. yes, that table. be nice to it 🫢
  • index β€” the index of the mapping that needs to be updated. like, which row are we editing bestie πŸ“
  • new_keycode β€” the desired keycode. the glow-up you want to put in there πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea: this routine is used to update the scancode->keycode mapping at a given position. that's it, that's the whole thing. you point at a spot, you hand it a new keycode, it does the swap. main character energy, zero drama. ⭐


⭐ RETURN ⭐

it hands you back the previous keycode assigned to the mapping β€” i.e. the one that was there before you showed up and changed everything. the before picture, if you will 😭


πŸ¦‹ SEE ALSO πŸ¦‹

okay bestie, buckle up, this is a long list and we're not skipping a single one, periodt. πŸ’€

like I said. all of them. ate and left no crumbs πŸ“


ngl, this one's a snack-sized page β€” no bugs flagged, no warnings, no deprecated anything to yell about. just pure, well-adjusted table-updating behavior. 🌈

and that's the page, bestie! brought to you from ./drivers/media/rc, dated October 2026, straight out of the Kernel API Manual (section 9, obviously πŸ’œ). go forth and update those mappings, mwah πŸ§šπŸ’–

πŸ“¦ where this page comes from