devm_irq_domain_create_sim(9)
okay so this is devm_irq_domain_create_sim(9) from the Kernel API Manual πβ¨ bestie, we're making an interrupt simulator for a managed device and it's giving kernel-core main character energy.
π NAME π
devm_irq_domain_create_sim β create a brand-new interrupt simulator for a managed device. Slay.
β¨ SYNOPSIS β¨
struct irq_domain * devm_irq_domain_create_sim (struct device *dev ,
struct fwnode_handle *fwnode , unsigned int num_irqs );
π§ ARGUMENTS π§
devβ the device you're initializing the simulator object for. That's the whole assignment, no cap.fwnodeβ thestruct fwnode_handlethat's getting associated with this domain. Iconic pairing fr fr.num_irqsβ how many interrupts to allocate. The count. The number. Periodt.
π₯ DESCRIPTION π₯
Okay so the vibe check on the return: on success, you get a new irq_domain object back β yes bestie, a whole new object β¨. On failure, it's a negative errno wrapped with ERR_PTR, so the error is literally traveling in disguise π. That's the contract.
π SEE ALSO π
- Kernel file
./kernel/irq/irq_sim.c irq_domain_create_sim(9)irq_domain_remove_sim(9)
π«Ά cute little footer sign-off: source/version ./kernel/irq, date October 2026, page devm_irq_domain_create_sim(9). byeee, go make that simulator π
π
π¦ 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