ir_sharp_encode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 of events. 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 🌈


sourced from ./drivers/media/rc, dated October 2026, from the Kernel API Manual besties β€” mwah, slay, bye πŸ«ΆπŸ’‹πŸŒΈ

πŸ“¦ where this page comes from