STRUCT IMG_IR_PRIV(9)
π 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
- 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