ir_sharp_encode(9)
β¨ NAME β¨
hiii bestie, welcome to the Kernel API Manual page for ir_sharp_encode(9) π
ir_sharp_encode - Encode a scancode as a stream of raw events
π¦ SYNOPSIS π¦
okay so here's the whole glow-up signature, exactly as it appears:
int ir_sharp_encode (enum rc_proto protocol , u32 scancode , struct
ir_raw_event *events , unsigned int max );
π ARGUMENTS π
protocolβ the protocol to encode. like, which infrared flavor are we serving today? πscancodeβ the scancode to encode. this is the main character number being turned into a whole event stream β¨eventsβ array of raw ir events to write into. the group chat where the encoded bits get posted π«Άmaxβ maximum size ofevents. the hard limit, no overflow era π
π RETURN π
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. no cap, that's literally the deal.
π SEE ALSO π
- Kernel file
./drivers/media/rc/ir-sharp-decoder.c ir_sharp_decode(9)
sourced from ./drivers/media/rc, dated October 2026, from the Kernel API Manual besties β mwah, slay, bye π«ΆππΈ
π¦ 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