STRUCT IMG_IR_SCANCODE_REQ(9)
π 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:
struct img_ir_control(9)struct img_ir_timing_range(9)struct img_ir_symbol_timing(9)struct img_ir_free_timing(9)struct img_ir_timings(9)struct img_ir_filter(9)struct img_ir_timing_regvals(9)struct img_ir_decoder(9)struct img_ir_reg_timings(9)struct img_ir_priv_hw(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms