ir_rc6_encode(9)
β¨ ir_rc6_encode(9) β Kernel API Manual πΈ
okay so bestie, this is the kernel page for ir_rc6_encode(9) β it's giving "turn a scancode into a stream of raw events" energy, and we are keeping every single deet. no cap. π
π NAME π
ir_rc6_encode β Encode a scancode as a stream of raw events
π¦ SYNOPSIS π¦
int ir_rc6_encode (enum rc_proto protocol , u32 scancode , struct
ir_raw_event *events , unsigned int max );
π ARGUMENTS π
protocolβ the protocol to encode, bestiescancodeβ the scancode to encodeeventsβ array of raw ir events to write intomaxβ maximum size ofevents
π RETURN π
- The number of events written.
-ENOBUFSif there isn't enough space in the array to fit the encoding. In this case allmaxevents will have been written.-EINVALif the scancode is ambiguous or invalid.
π₯ SEE ALSO π₯
Kernel file ./drivers/media/rc/ir-rc6-decoder.c ir_rc6_decode(9)
π k bye bestie β source/version is ./drivers/media/rc, it's dated October 2026, and the page is literally ir_rc6_encode(9) πβ¨π«Ά
π¦ 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