STRUCT RC_MAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct rc_map(9) πŸŽ€

okay so this is the Kernel API Manual page for struct rc_map, and bestie, it literally just represents a keycode map table. that's the whole vibe. that's the NAME, that's the point. πŸ’… let's go ✨


✨ SYNOPSIS ✨

here's the whole struct, no cap, every field exactly where it lives:

struct rc_map {
    struct rc_map_table     *scan;
    unsigned int            size;
    unsigned int            len;
    unsigned int            alloc;
    enum rc_proto           rc_proto;
    const char              *name;
    spinlock_t lock;
 };

🌸 Members 🌸

okay so these are the members, one by one, we're going through all of them, no skipping πŸ’–

  • scan β€” pointer to struct rc_map_table. it's giving "here's where the actual table lives" energy.
  • size β€” max number of entries. the ceiling. the limit. ✨
  • len β€” number of entries that are in use. so like, size is how many chairs are in the room and len is how many are actually sat in 🫢
  • alloc β€” size of can, in bytes. (yes the page literally says can there β€” not me, i'm just the messenger πŸ’€ i'm keeping it exactly how it's written, that's the rule)
  • rc_proto β€” type of the remote controller protocol, as defined at enum rc_proto. so the protocol flavour. iconic πŸ‘‘
  • name β€” name of the key map table. it's got a name. main character energy πŸ¦‹
  • lock β€” lock to protect access to this structure. do NOT skip the lock, that's the whole point of it, thousand-percent πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

all the friends in this cinematic universe, in the kernel file ./include/media/rc-map.h:


lowkey a warning that's just true: everything here lives in the kernel file ./include/media/rc-map.h, so that's where you go looking. πŸ’œ

okay that's the page!! πŸ“ this one came from ./include/media and it's the October 2026 version, so that's the copyright/source date situation, and honestly? slay. go read the SEE ALSO section, periodt. πŸ§šβœ¨πŸŽ€

πŸ“¦ where this page comes from