ir_rc6_decode(9)
π ir_rc6_decode(9) β the Kernel API Manual, bestie edition β¨
okay so picture this: ir_rc6_decode() β the little function whose whole entire job is Decode one RC6 pulse or space π like that's it, that's the gig, and honestly? iconic.
β¨ SYNOPSIS β¨
int ir_rc6_decode (struct rc_dev *dev , struct ir_raw_event ev );
literally just one line, no drama, no cap π«Ά
πΈ ARGUMENTS πΈ
devβ thestruct rc_devdescriptor of the device π this is the main character, the remote-control device struct itself.evβ thestruct ir_raw_eventdescriptor of the pulse/space π like which pulse or space are we even talking about, this one, this is the one.
π¦ DESCRIPTION π¦
so the whole vibe check here is: this function returns -EINVAL if the pulse violates the state machine ππ
that's the entire tea. if the incoming pulse doesn't play nice with the state machine's rules, you get -EINVAL handed right back to you. not me being dramatic, that's genuinely what it does π
lowkey important: that -EINVAL is the error path, so don't be surprised when it shows up β it means the state machine said "girl, no" π
π SEE ALSO π
- the kernel file
./drivers/media/rc/ir-rc6-decoder.cβ go read the source bestie, it's all in there π ir_rc6_encode(9)β the other half of the duo, the encode to this decode's decode, they're giving matching friendship bracelets π
π sign-off π
this whole page lives under ./drivers/media/rc and it's dated October 2026 β so yeah, future-flavored kernel docs, we love to see it β slay, go decode some pulses, ily, bye π
β¨
π¦ 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