ir_raw_encode_carrier(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ir_raw_encode_carrier πŸ’…

ok so bestie, welcome to the Kernel API Manual β€” this page is literally about ir_raw_encode_carrier(9) and it's lowkey so useful, i promise 🫢


✨ NAME ✨

ir_raw_encode_carrier β€” Get carrier used for protocol πŸŽ€


🌸 SYNOPSIS 🌸

int ir_raw_encode_carrier (enum rc_proto protocol );

yes that's the whole thing. short king energy fr fr πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • protocol β€” the protocol. that's it. that's the description. the manpage said "protocol" and honestly? iconic minimalism πŸ’…

πŸ’– DESCRIPTION πŸ’–

So what does it do? It attempts to find the carrier for the protocol you handed it. That's the whole vibe check β€” you give it a protocol, it goes looking for the matching carrier. no cap, that's it 🌈


⭐ RETURN ⭐

It returns the carrier in Hz πŸ”₯ β€” and if things go sideways it returns -EINVAL:

  • when the protocol is invalid, or
  • when no compatible encoder was found 😭

so yeah, check your return value, bestie. always. πŸ‘‘


πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./drivers/media/rc/rc-ir-raw.c, plus the whole friend group:

go read them all, iykwim πŸ§šπŸ’œ


ok bye bestie, this page lives in ./drivers/media/rc, it's dated October 2026, and it's from the Kernel API Manual β€” version whatever the kernel's serving that day πŸ’€ slay, go encode some carriers πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from