devm_irq_alloc_generic_chip(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this page is all about devm_irq_alloc_generic_chip(9) β€” the function that will allocate and initialize a generic chip for a managed device πŸ’… it’s giving β€œsetup fairy” energy, fr fr.


✨ SYNOPSIS ✨

struct irq_chip_generic * devm_irq_alloc_generic_chip (struct device
*dev , const char *name , int num_ct , unsigned int irq_base , void
__iomem *reg_base , irq_flow_handler_t handler );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device you’re allocating this generic chip for 🫢
  • name β€” the name of the irq chip 🌸
  • num_ct β€” number of irq_chip_type instances associated with this πŸ’«
  • irq_base β€” interrupt base nr for this chip πŸ”₯
  • reg_base β€” register base address (virtual) 🧚
  • handler β€” default flow handler associated with this chip πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

It returns an initialized irq_chip_generic structure β€” yes bestie, it hands you back a whole set-up struct πŸ˜­πŸ’–. The chip defaults to the primary (index 0) irq_chip_type and handler. So that’s the starting vibe: primary type, index 0, default handler. Slay.

πŸ’œ SEE ALSO πŸ’œ

Go give these a lil read too, iykyk:


mwah πŸ’‹ this page lives under ./kernel/irq, is dated October 2026, and its footer baddie is devm_irq_alloc_generic_chip(9). periodt 🌈

πŸ“¦ where this page comes from