irq_domain_create_hierarchy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 irq_domain_create_hierarchy (9) β€” Kernel API Manual 🌸

okay bestie, so this is a page from the Kernel API Manual, section 9, and it's literally all about adopting a brand-new irq domain into the family tree 🧚✨


✨ NAME ✨

irq_domain_create_hierarchy β€” add an irqdomain into the hierarchy πŸ’… (yes, that's the whole vibe: hierarchy enrollment, no cap)


πŸ¦‹ SYNOPSIS πŸ¦‹

struct irq_domain * irq_domain_create_hierarchy (struct irq_domain
*parent , unsigned int flags , unsigned int size , struct fwnode_handle
*fwnode , const struct irq_domain_ops *ops , void *host_data );

that's the whole function signature, character for character, don't come for me 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” the parent irq domain you're associating with the new domain. basically the new domain's chosen family πŸ‘‘
  • flags β€” the irq domain flags associated to the domain. little labels it wears 🏷️
  • size β€” size of the domain. see below, i promise i'm getting to it ⬇️
  • fwnode β€” optional fwnode of the interrupt controller. optional!! very chill of it πŸ™ˆ
  • ops β€” pointer to the interrupt domain callbacks. the domain's whole personality, lowkey πŸ’«
  • host_data β€” controller private data pointer. its little secret stash πŸ“

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: if size is 0, a tree domain is created. otherwise β€” any other size β€” it's a linear domain. that's it, that's the branch ✨

and if it's successful, the parent gets associated to the new domain and the domain flags are set. slay, the whole family's official now πŸ”₯


⭐ RETURN ⭐

a pointer to the IRQ domain 🫢 … or NULL on failure 😭 (if you get NULL, bestie, it did not eat, check your args)


🌈 SEE ALSO 🌈

like, go read all of them, iykyk πŸ“šπŸ’–


ok that's the page!! no cap, every flag and arg survived the glow-up πŸ’…

and that's a wrap, bestie πŸŽ€ this one lives in ./include/linux, dated October 2026, in the irq_domain_create_hierarchy(9) corner of the Kernel API Manual β€” mwah, go build something iconic πŸ¦‹βœ¨

πŸ“¦ where this page comes from