STRUCT IMG_IR_PRIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct img_ir_priv(9) πŸ’–

okay so bestie, this page is from the Kernel API Manual and it's literally all about struct img_ir_priv β€” the private driver data situation. think of it as the lil backstage dressing room where the IR driver keeps all its stuff. no cap, it's giving "everything the driver needs in one struct" energy πŸŽ€


✨ NAME ✨

struct img_ir_priv β€” Private driver data. that's it, that's the whole vibe. it's the private stash, not for everyone's eyes πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

struct img_ir_priv {
    struct device           *dev;
    int irq;
    struct clk              *clk;
    struct clk              *sys_clk;
    void __iomem            *reg_base;
    spinlock_t lock;
    struct img_ir_priv_raw  raw;
    struct img_ir_priv_hw   hw;
 };

look at her. eight members, all iconic, all accounted for πŸ’…


🌸 Members 🌸

so this is the part where we meet the cast, one by one, main character energy all around:

  • dev β€” Platform device. the whole reason we're here fr fr 🫢
  • irq β€” IRQ number. the interrupt line's digits, lowkey important.
  • clk β€” Input clock. the incoming clock, feeding the vibe.
  • sys_clk β€” System clock. the system's own clock, doing system clock things ⭐
  • reg_base β€” Iomem base address of IR register block. the starting address of the IR register block, iomem flavored.
  • lock β€” Protects IR registers and variables in this struct. this is the bouncer πŸšͺ β€” it guards the IR registers and the variables living in this struct. do not skip the lock, bestie, that's how you get chaos 😭
  • raw β€” Driver data for raw decoder. the raw decoder's own lil pile of data.
  • hw β€” Driver data for hardware decoder. and the hardware decoder's pile too. two decoders, two sub-structs, balanced as all things should be ✨

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./drivers/media/rc/img-ir/img-ir.h β€” go read the header if you want the full lore, iykyk πŸ“–

ngl bestie, if you're touching lock, remember what she protects: the IR registers and the variables in this struct. that's literally her whole job πŸ’€

and that's the page!! brought to you by the fine folks hanging out at ./drivers/media/rc/img-ir, dated October 2026 β€” slay, periodt, go read your kernel headers πŸ’œβœ¨

πŸ“¦ where this page comes from