ir_imon_encode(9)
π ir_imon_encode(9) π
okay bestie, this one is from the Kernel API Manual, and it is literally about encoding a scancode as a stream of raw events. no cap π
β¨ NAME β¨
ir_imon_encode β Encode a scancode as a stream of raw events. that's the whole vibe π¦
πΈ SYNOPSIS πΈ
int ir_imon_encode (enum rc_proto protocol , u32 scancode , struct
ir_raw_event *events , unsigned int max );
π«Ά ARGUMENTS π«Ά
protocolβ protocol to encode. like, which protocol are we encoding with, bestie?scancodeβ scancode to encode. yes, the actual scancode going into the stream π₯eventsβ array of raw ir events to write into. this is the write-into zone πmaxβ maximum size ofevents. so we know how much room we have, periodt π«Ά
π RETURN π
Returns the number of events written. π
If there is not enough space in the array to fit the encoding, it returns -ENOBUFS. In this case all max events will have been written. ππ
π SEE ALSO π
- Kernel file
./drivers/media/rc/ir-imon-decoder.c - Also peep
ir_imon_decode(9)π
signed off from the ./drivers/media/rc source/version β dated October 2026 π«Άπ go off, bestie β¨
π¦ 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