STRUCT IMG_IR_SCANCODE_REQ(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct img_ir_scancode_req(9) β€” like, the whole Kernel API Manual moment

okay so bestie, welcome to the glow-up of struct img_ir_scancode_req(9) β€” the Kernel API Manual page you didn't know you needed until right now. no cap, this one's short but she's iconic. ✨


🌸 NAME 🌸

struct img_ir_scancode_req β€” Scancode request data. that's it. that's the vibe. πŸŽ€


✨ SYNOPSIS ✨

here's the whole struct, copy-pasted exactly because we do not mess with the source, periodt:

struct img_ir_scancode_req {
    enum rc_proto protocol;
    u32 scancode;
    u8 toggle;
 };

yes bestie, she's three fields. small but mighty. πŸ¦‹


🫢 Members 🫢

πŸ’– protocol

Protocol code of received message (defaults to RC_PROTO_UNKNOWN).

so if nobody sets this, it just sits there being RC_PROTO_UNKNOWN β€” relatable, honestly. πŸ™ˆ

⭐ scancode

Scan code of received message (must be written by handler if IMG_IR_SCANCODE is returned).

🚨 okay this one is important, bestie β€” if the handler returns IMG_IR_SCANCODE, it must write this. that's not a suggestion, that's the law (well, the API contract). don't leave her empty, she'll be so embarrassed. 😭

🌈 toggle

Toggle bit (defaults to 0).

starts at 0, living its simple life, until somebody toggles it. we love a low-maintenance icon. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

all the sibling structs she's linked with, and yes you gotta know all of them for the full lore, iykyk:

and the kernel file where all this lives: ./drivers/media/rc/img-ir/img-ir-hw.h β€” go read her, she ate. πŸ”₯


okay that's the whole page bestie, you're officially educated. mwah. πŸ’œ

source: ./drivers/media/rc/img-ir Β· dated October 2026 Β· from the Kernel API Manual β€” slay and goodbye, see you in the next manpage βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from