irq_get_default_domain(9)
β¨ irq_get_default_domain(9) β¨
okay so bestie, we're in the Kernel API Manual today and the function on the agenda is irq_get_default_domain β yes that's the section 9 one, the kernel-internals girlies know π
πΈ SYNOPSIS πΈ
struct irq_domain * irq_get_default_domain (void );
literally just call it, no args, no drama, and it hands you back a struct irq_domain *. slay.
π ARGUMENTS π
voidβ no arguments. nothing. zero. empty list. it's giving minimalist icon behavior β¨
π¦ RETURN π¦
it returns the default domain, if any. that "if any" is doing heavy lifting ngl β sometimes there just isn't one, and that's a whole vibe check you have to handle yourself π«Ά
π DESCRIPTION π
okay so here's the tea, and I need you to listen: modern code should never use this. not "probably shouldn't" β never. periodt. π
this one is strictly for systems that cannot implement a firmware->fwnode mapping (which both DT and ACPI provide). so like, if your platform can do DT or ACPI, congrats, you have no business here, go home, use the normal path π
fr fr β treat this as the legacy backdoor for the platforms that just can't do the mapping thing. not your everyday tool. π
π SEE ALSO π
Kernel file ./kernel/irq/irqdomain.c β and here's the entire friend group, no one left out:
__irq_domain_alloc_fwnode(9)irq_domain_free_fwnode(9)irq_domain_instantiate(9)irq_domain_remove(9)irq_domain_create_simple(9)irq_find_matching_fwspec(9)irq_set_default_domain(9)irq_create_direct_mapping(9)irq_create_mapping_affinity(9)irq_dispose_mapping(9)__irq_resolve_mapping(9)irq_domain_xlate_onecell(9)irq_domain_xlate_twocell(9)irq_domain_xlate_twothreecell(9)irq_domain_xlate_onetwocell(9)irq_domain_translate_onecell(9)irq_domain_translate_twocell(9)irq_domain_translate_twothreecell(9)irq_domain_reset_irq_data(9)irq_domain_disconnect_hierarchy(9)irq_domain_get_irq_data(9)irq_domain_set_hwirq_and_chip(9)irq_domain_set_info(9)irq_domain_free_irqs_common(9)irq_domain_free_irqs_top(9)__irq_domain_alloc_irqs(9)irq_domain_push_irq(9)irq_domain_pop_irq(9)irq_domain_free_irqs(9)irq_domain_alloc_irqs_parent(9)irq_domain_free_irqs_parent(9)irq_domain_activate_irq(9)irq_domain_deactivate_irq(9)
and that's the whole page, bestie β no cap, that's everything π§
cute little sign-off moment: this little number lives in ./kernel/irq, dated October 2026, and it's part of the Kernel API Manual. mwah π π
π¦ 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