ir_sanyo_encode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so welcome to ir_sanyo_encode(9) in the Kernel API Manual, bestie πŸ’– this is the page for ir_sanyo_encode β€” it encodes a scancode as a stream of raw events. that's the whole vibe. periodt.


πŸŽ€ SYNOPSIS πŸŽ€

int ir_sanyo_encode (enum rc_proto protocol , u32 scancode , struct
       ir_raw_event *events , unsigned int max );

πŸ’… ARGUMENTS πŸ’…

  • protocol β€” the protocol to encode, no cap.
  • scancode β€” the scancode that's getting encoded.
  • events β€” the array of raw ir events to write into.
  • max β€” the maximum size of events.

πŸ”₯ RETURN πŸ”₯

it 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. yes, literally all of them.

πŸ¦‹ SEE ALSO πŸ¦‹


okay bye bestie πŸ«ΆπŸ’– this page's source/version is ./drivers/media/rc, and it's dated October 2026 πŸŽ€

πŸ“¦ where this page comes from