__irq_domain_alloc_fwnode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __irq_domain_alloc_fwnode(9) ✨

okay so welcome to the Kernel API Manual bestie πŸ’– this one's all about __irq_domain_alloc_fwnode β€” the lil' allocation helper for irq domain fwnodes. yes it's niche. yes it's iconic. let's go 🌸


πŸŽ€ NAME πŸŽ€

__irq_domain_alloc_fwnode β€” literally allocate a fwnode_handle that's suitable for identifying an irq domain πŸ¦‹


🌈 SYNOPSIS 🌈

struct fwnode_handle * __irq_domain_alloc_fwnode (unsigned int type ,
      int id , const char *name , phys_addr_t *pa , struct fwnode_handle
      *parent );

πŸ’œ ARGUMENTS πŸ’œ

  • type β€” the type of irqchip_fwnode. peep linux/irqdomain.h for the deets πŸ‘€
  • id β€” an optional user-provided id, but only if name != NULL 🫢
  • name β€” an optional user-provided domain name, no pressure ✨
  • pa β€” an optional user-provided physical address πŸ“
  • parent β€” an optional parent fwnode_handle πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

So what it does is: allocate a struct irqchip_fwid, and hand you back a pointer to the embedded fwnode_handle (or NULL on failure, bestie β€” that's the flop era case 😭).


πŸ”₯ NOTE πŸ”₯

The types IRQCHIP_FWNODE_NAMED and IRQCHIP_FWNODE_NAMED_ID are solely there to transport name information to the irqdomain creation code. the node is not stored, periodt πŸ’… for other types the pointer is kept in the irq domain struct.

fr fr, don't assume the node gets stashed away for those two named types β€” it doesn't πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./kernel/irq/irqdomain.c 🌟 and also these iconic friends:


mwah πŸ’‹ that's the whole page β€” sourced from ./kernel/irq, dated October 2026, and yeah it's the __irq_domain_alloc_fwnode(9) manual. go be a main character in your irq domain now πŸ§šπŸ’œ

πŸ“¦ where this page comes from