STRUCT IMG_IR_FILTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct img_ir_filter(9)

okay bestie, welcome to the Kernel API Manual ✨ β€” section 9, struct edition. this one is about struct img_ir_filter, and its whole ~vibe~ is filtering IR events. that's it, that's the job. let's get into it πŸŽ€


🌸 NAME 🌸

struct img_ir_filter β€” Filter IR events. literally what it says on the tin, no cap πŸ’–


✨ SYNOPSIS ✨

struct img_ir_filter {
    u64 data;
    u64 mask;
    u8 minlen;
    u8 maxlen;
};

that's the whole struct, she's compact and iconic πŸ‘‘


πŸ¦‹ Members πŸ¦‹

  • data β€” the data to match. this is the thing you're out here looking for, fr fr πŸ”
  • mask β€” mask of bits to compare. like, which bits of data actually matter here πŸ’…
  • minlen β€” additional minimum number of bits. the floor, the bare minimum, we do not go below this 🚫
  • maxlen β€” additional maximum number of bits. the ceiling, the limit, the "know your worth" of bit counts ⭐
ngl all four members are just sitting there doing their thing β€” data and mask are u64, minlen and maxlen are u8. don't mix them up bestie πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/media/rc/img-ir/img-ir-hw.h, plus the whole friend group πŸ’œ:

like a whole little squad of structs, and honestly? obsessed 🫢


and that's the page!! 🧚 from ./drivers/media/rc/img-ir, dated October 2026, and it's struct img_ir_filter(9) signing off β€” slay, bye, go filter some IR events πŸ’–βœ¨πŸ”₯

πŸ“¦ where this page comes from