ir_raw_encode_carrier(9)
π 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:
ir_raw_event_store(9)ir_raw_event_store_edge(9)ir_raw_event_store_with_filter(9)ir_raw_event_set_idle(9)ir_raw_event_handle(9)ir_raw_gen_manchester(9)ir_raw_gen_pd(9)ir_raw_gen_pl(9)ir_raw_encode_scancode(9)ir_raw_edge_handle(9)
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
- 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