msi_domain_..._descs_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… msi_domain_free_msi_descs_range β€” Kernel API Manual, bestie edition πŸŽ€

Okay so this is a function from the Kernel API Manual and honestly? It's giving cleanup era. ✨


🌸 NAME 🌸

msi_domain_free_msi_descs_range β€” frees a whole range of MSI descriptors for a device inside an irqdomain. Literally the "ok we're done here, release the descs" moment πŸ’…


✨ SYNOPSIS ✨

void msi_domain_free_msi_descs_range (struct device *dev , unsigned int domid , unsigned int first , unsigned int last );

Note the return type: void. She does her job and doesn't report back, no cap. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the Device whose descriptors we're freeing. It's her descriptors, she's just handing them back. πŸ’–
  • domid β€” the Id of the domain we're operating on. Gotta know which irqdomain we're in, iykyk. 🌈
  • first β€” index to start freeing from, and it's inclusive (so yes, first itself gets freed, bestie). 🌸
  • last β€” the last index to be freed, also inclusive. So the range really is first through last, both ends counted. πŸŽ€
Quick vibe check on those two: inclusive on both sides. Don't be out here assuming off-by-one shenanigans β€” free the whole span from first to last, ends included. πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./kernel/irq/msi.c, plus a whole friend group of related functions and structs:

That's the whole squad, no notes. πŸ’œ


And that's the page!! 🧚 Sending you off with the source deets: this one lives under ./kernel/irq and it's dated October 2026. Slay, go free some descriptors responsibly. πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from