STRUCT VIC_DEVICE(9)
π struct vic_device(9) π
okay bestie, welcome to the Kernel API Manual β¨ β today's main character is struct vic_device, aka the VIC PM device. yes it's a struct, yes it's important, and yes we're gonna get through it together π«Ά
πΈ NAME πΈ
struct vic_device β the VIC PM device. that's it, that's the vibe. lowkey iconic naming ngl π
β¨ SYNOPSIS β¨
struct vic_device {
void __iomem *base;
int irq;
u32 valid_sources;
u32 resume_sources;
u32 resume_irqs;
u32 int_select;
u32 int_enable;
u32 soft_int;
u32 protect;
struct irq_domain *domain;
};
like, look at her. ten fields. flawless. no notes π₯
π Members π
okay so here's the cast, one by one, no skips, no cuts π
baseβ the register base for the VIC. the home address, the whole foundation of the operation fr fr.irqβ the IRQ number for the base of the VIC. every queen needs her number, and this is hers.valid_sourcesβ a bitmask of valid interrupts. the guest list, basically β if you're not on it, you're not getting in πresume_sourcesβ a bitmask of interrupts for resume. the "we'll be right back" list, curated with care βresume_irqsβ the IRQs enabled for resume. yes bestie, not the same thing asresume_sources, we do not conflate them, we've been over this πint_selectβ save forVIC_INT_SELECT. it's a save slot. she's holding the value down for later πint_enableβ save forVIC_INT_ENABLE. another save slot, another icon πsoft_intβ save forVIC_INT_SOFT. the soft interrupt's little safety deposit box πprotectβ save forVIC_PROTECT. protection detail stays protected, periodt.domainβ the IRQ domain for the VIC. the whole neighborhood, the whole community, the whole kingdom honestly π
π¦ SEE ALSO π¦
go read the source, bestie, it's all right there in the kernel file ./drivers/irqchip/irq-vic.c π
and these absolute legends:
four functions, all slay, all worth your time π«Ά
ngl this whole page lives in ./drivers/irqchip, and it's dated October 2026. so yes, technically this is a future bestie sending you love from the irqchip directory π stay hydrated, read your source files, and remember: the VIC is not like other girls π
β¨
bye bestie!! π¦ππ
π¦ 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