ir_nec_encode(9)
β¨ NAME β¨
okay so bestie, meet ir_nec_encode(9) from the Kernel API Manual ππ β sheβs here to Encode a scancode as a stream of raw events, and honestly? iconic behavior β¨
πΈ SYNOPSIS πΈ
int ir_nec_encode (enum rc_proto protocol , u32 scancode , struct
ir_raw_event *events , unsigned int max );
π¦ ARGUMENTS π¦
protocolβ the protocol to encode π«Άscancodeβ the scancode to encode β¨eventsβ array of raw ir events to write into πmaxβ maximum size of events π
π RETURN π
The number of events written, periodt π
. But if there isnβt enough space in the array to fit the encoding, you get -ENOBUFS π. In this case all max events will have been written β yes, even in the sad ending, bestie π«Ά.
π SEE ALSO π
- Kernel file
./drivers/media/rc/ir-nec-decoder.cπ ir_nec_decode(9)πir_nec_scancode_to_raw(9)π
signing off from source/version ./drivers/media/rc on October 2026 β mwah πβ¨
π¦ 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