STRUCT MSI_ALLOC_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct msi_alloc_info(9) πŸ’–

okay bestie, we're in the Kernel API Manual and this page is all about struct msi_alloc_info β€” the default structure for MSI interrupt allocation. it's giving "default shape for this job," and we're gonna read it together. no cap. ✨


✨ NAME ✨

struct msi_alloc_info β€” Default structure for MSI interrupt allocation. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the struct, copied exactly and living its best life in a code block:

       struct msi_alloc_info {
           struct msi_desc                 *desc;
           irq_hw_number_t hwirq;
           unsigned long                   flags;
           union {
             unsigned long           ul;
             void *ptr;
           } scratchpad[NUM_MSI_ALLOC_SCRATCHPAD_REGS];
        };

🫢 Members 🫢

  • desc β€” Pointer to msi descriptor. πŸ‘‘
  • hwirq β€” Associated hw interrupt number in the domain. 🌸
  • scratchpad β€” Storage for implementation specific scratch data. πŸŽ€

πŸ’… Description πŸ’…

so the tea is: architectures can provide their own implementation by not including asm-generic/msi.h into their arch specific header file. that's the whole move β€” no extra sauce from me, fr fr. πŸ¦‹

🌈 SEE ALSO 🌈

go peek at the Kernel file ./include/asm-generic/msi.h β€” that's the reference this page points you to. πŸ”₯


kisses bestie! πŸ’‹ this page's source/version is ./include/asm-generic, and the date on it is October 2026. mwah! πŸŽ€

πŸ“¦ where this page comes from