ir_sanyo_encode(9)
β¨ NAME β¨
okay so welcome to ir_sanyo_encode(9) in the Kernel API Manual, bestie π this is the page for ir_sanyo_encode β it encodes a scancode as a stream of raw events. that's the whole vibe. periodt.
π SYNOPSIS π
int ir_sanyo_encode (enum rc_proto protocol , u32 scancode , struct
ir_raw_event *events , unsigned int max );
π ARGUMENTS π
protocolβ the protocol to encode, no cap.scancodeβ the scancode that's getting encoded.eventsβ the array of raw ir events to write into.maxβ the maximum size ofevents.
π₯ RETURN π₯
it returns the number of events written β¨
if there isn't enough space in the array to fit the encoding, you get -ENOBUFS π and in this case all max events will have been written. yes, literally all of them.
π¦ SEE ALSO π¦
- Kernel file
./drivers/media/rc/ir-sanyo-decoder.c ir_sanyo_decode(9)
okay bye bestie π«Άπ this page's source/version is ./drivers/media/rc, and it's dated October 2026 π
π¦ 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