ir_rc6_decode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the struct rc_dev descriptor of the device πŸ’– this is the main character, the remote-control device struct itself.
  • ev β€” the struct ir_raw_event descriptor 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