ir_nec_encode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘€


signing off from source/version ./drivers/media/rc on October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from