ir_imon_encode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 of events. 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