msi_device_populate_sysfs(9)
π msi_device_populate_sysfs β Kernel API Manual β¨
okay so bestie, welcome to the glow-up of msi_device_populate_sysfs, straight out of the Kernel API Manual. this one's a little cutie: it makes sysfs entries, and we're gonna walk through it together π
πΈ NAME πΈ
msi_device_populate_sysfs β populate msi_irqs sysfs entries for a device π
like, it literally builds the msi_irqs sysfs entries for your device. that's the vibe.
β¨ SYNOPSIS β¨
int msi_device_populate_sysfs (struct device *dev );
returns an int, takes one struct device *, slay π«Ά
π¦ ARGUMENTS π¦
devβ the device (PCI, platform etc) which will get sysfs entries π
so yeah, bestie, hand it your device β doesn't matter if it's PCI, platform, etc β and it's the one getting the sysfs entries. no cap.
π SEE ALSO π
okay this is the part where the whole friend group gets tagged in the groupchat π it's all in the kernel file ./kernel/irq/msi.c, and honestly the roster is iconic:
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_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_irqs_all_locked(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)
iykyk π₯ that's the whole squad, not a single one left out π
ngl, that SEE ALSO list is giving main character energy β go read a few of those if you wanna actually understand the MSI ecosystem π
mwah π that's the page! this whole thing lives in ./kernel/irq, it's dated October 2026, and it's filed under msi_device_populate_sysfs(9) β 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