vic_register(9)
π vic_register(9) β the kernel API manual, but make it cute π
okay so bestie, this one is from the Kernel API Manual section vic_register(9), and it's literally all about introducing a VIC to the system. let's get into it π
β¨ NAME β¨
vic_register β register a VIC. that's it. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
void vic_register (void __iomem *base , unsigned int parent_irq ,
unsigned int irq , u32 valid_sources , u32 resume_sources , struct
device_node *node );
no cap, that's the exact signature β copy it character for character if you're typing it out, bestie π«Ά
π ARGUMENTS π
baseβ the base address of the VIC. like, where it lives in memory. iconic.parent_irqβ the parent IRQ if it's cascaded. if it's not cascaded, it's0. yes, zero. don't overthink it πirqβ the base IRQ for the VIC. the starting point, the main character of the interrupt number lineup πvalid_sourcesβ a bitmask of valid interrupts. bitmask, bestie, so it's all bitwise and cute π₯resume_sourcesβ a bitmask of interrupts allowed for resume sources. also a bitmask. we love a themed pair πnodeβ the device tree node associated with the VIC. it's giving "paperwork but make it devicetree" πΈ
π DESCRIPTION π
So what does vic_register actually do? It registers the VIC with the system device tree so that the system can be notified of suspend and resume requests, and so it can make sure the correct actions get taken to re-instate the settings on resume. literally the VIC's whole "remember me when I wake up" moment π
It also configures the IRQ domain for the VIC. so yeah, two jobs, both slaying β¨
π¦ SEE ALSO π¦
- Kernel file
./drivers/irqchip/irq-vic.cβ the source, iykyk struct vic_device(9)vic_init2(9)vic_pm_init(9)vic_init(9)
and the directory in question: ./drivers/irqchip β go read it, it's good for you π
okay that's the whole page, bestie β go register that VIC and have the best day π
π· this lil rewrite is brought to you by the Kernel API Manual, dated October 2026, straight out of ./drivers/irqchip β mwah, periodt π
π¦ 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