STRUCT RC_MAP(9)
π 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 tostruct 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,sizeis how many chairs are in the room andlenis how many are actually sat in π«Άallocβ size ofcan, in bytes. (yes the page literally sayscanthere β 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 atenum 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:
struct rc_map_table(9)struct rc_map_list(9)rc_map_register(9)rc_map_unregister(9)rc_map_get(9)
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
- 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