ir_rcmm_decode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ir_rcmm_decode β€” the RCMM decoder era πŸ’…

okay so real talk, this page is ir_rcmm_decode(9) from the Kernel API Manual, and bestie, if you're poking at RCMM infrared decoding in the kernel, you're gonna want this one. it's giving "niche but iconic" ✨


πŸŽ€ NAME πŸŽ€

ir_rcmm_decode β€” decode exactly one RCMM pulse or space, that's it, that's the whole job 🫢


✨ SYNOPSIS ✨

int ir_rcmm_decode (struct rc_dev *dev , struct ir_raw_event ev );

like, yes, that spacing is literally how it's written, don't come for me 😭


🌸 ARGUMENTS 🌸

  • dev β€” the struct rc_dev descriptor of the device πŸ’– so we know whose vibe we're decoding.
  • ev β€” the struct ir_raw_event descriptor of the pulse/space ⭐ the actual little blip of IR we're looking at.

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it do? it decodes one RCMM pulse or space, periodt. πŸ’…

but here's the important part, no cap: this function returns -EINVAL if the pulse violates the state machine πŸ”₯ like if the incoming pulse doesn't fit the rules the decoder is following, you get -EINVAL back. that's the whole warning, bestie, don't ignore it πŸ™ˆ

lowkey reminder: "violates the state machine" is the exact condition from the manpage β€” not me being dramatic, it's fr fr what it says πŸ’€

🧚 SEE ALSO 🧚

  • Kernel file ./drivers/media/rc/ir-rcmm-decoder.c β€” go read the source, iykyk πŸ‘‘

and that's the page!! πŸ’œ cute little sign-off for you: this gem lives under ./drivers/media/rc and the date on it is October 2026 🌈 so yeah, timestamped and everything, slay πŸŽ€βœ¨

πŸ“¦ where this page comes from