msi_domain_a...s_all_locked(9)
πΈ msi_domain_alloc_irqs_all_locked(9) πΈ
okay bestie, welcome to the Kernel API Manual β yes we're reading kernel docs for fun now, this is who we are π
β¨ NAME β¨
msi_domain_alloc_irqs_all_locked β allocate all the interrupts from a MSI interrupt domain. all of them. every last one. π
β¨ SYNOPSIS β¨
int msi_domain_alloc_irqs_all_locked (struct device *dev , unsigned int domid , int nirqs );
β¨ ARGUMENTS β¨
- dev β pointer to the
struct deviceof the device you're allocating interrupts for π«Ά - domid β the id of the interrupt domain we're operating on, iykyk
- nirqs β the number of interrupts to allocate. yes, a number. keep counting bestie π₯
β¨ DESCRIPTION β¨
so the way this works is: this function scans all the MSI descriptors of the MSI domain and allocates interrupts for all the unassigned ones. that's it, that's the vibe check π
it's the function you reach for when the MSI domain usage is one where the descriptor allocation is handled at the call site β for example PCI/MSI[X]. main character energy only β¨
β¨ RETURN β¨
0 on success, or an error code. slay if it's 0, π if it's not.
β¨ SEE ALSO β¨
peep these, bestie β the whole friend group:
- the kernel file
./kernel/irq/msi.c struct msi_device_data(9)struct msi_ctrl(9)msi_alloc_desc(9)msi_domain_insert_msi_desc(9)msi_domain_free_msi_descs_range(9)msi_domain_add_simple_msi_descs(9)msi_setup_device_data(9)__msi_lock_descs(9)__msi_unlock_descs(9)msi_domain_first_desc(9)msi_next_desc(9)msi_domain_get_virq(9)msi_device_populate_sysfs(9)msi_device_destroy_sysfs(9)msi_domain_set_affinity(9)msi_create_irq_domain(9)msi_create_parent_irq_domain(9)msi_parent_init_dev_msi_info(9)msi_create_device_irq_domain(9)msi_remove_device_irq_domain(9)msi_match_device_irq_domain(9)msi_domain_alloc_irqs_range_locked(9)msi_domain_alloc_irqs_range(9)msi_domain_alloc_irq_at(9)msi_device_domain_alloc_wired(9)msi_domain_free_irqs_range_locked(9)msi_domain_free_irqs_range(9)msi_domain_free_irqs_all_locked(9)msi_domain_free_irqs_all(9)msi_device_domain_free_wired(9)msi_get_domain_info(9)msi_device_has_isolated_msi(9)
ngl this page lives in ./kernel/irq and it's dated October 2026 β go off, future kernel π¦
okay that's the whole thing, you ate that fr fr π periodt π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms