msi_first_desc(9)
π msi_first_desc(9) β like, the Kernel API Manual era π
okay bestie, sit down, we're talking about msi_first_desc(9) today and honestly? she's a little lookup girlie with one very important rule. let's get into it β¨
πΈ NAME πΈ
msi_first_desc β grabbeth the first MSI descriptor of the default irqdomain. yes, THE default one. main character irqdomain energy π
β¨ SYNOPSIS β¨
struct msi_desc * msi_first_desc (struct device *dev , enum
msi_desc_filter filter );
π¦ ARGUMENTS π¦
devβ the Device you're operating on π«Ά like, whose descriptors are we digging through, bestie?filterβ the Descriptor state filter π you get to be picky. iconic of you.
π DESCRIPTION π
okay so this is the part where you HAVE to listen, no cap:
Must be called with the MSI descriptor mutex held, i.e. msi_lock_descs must be invoked before the call. π
like, LITERALLY. you cannot just waltz in and call this thing cold. msi_lock_descs goes first, then you call. that's the vibe check and you WILL be failing it if you skip the lock. lock her up first, then go looking. periodt π₯
π RETURN π
returns a Pointer to the first MSI descriptor matching the search criteria π«
and if nothing matches? NULL π« none found, bestie. empty search. it's giving nothing in the group chat. π
π₯ SEE ALSO π₯
the whole squad, fr fr β Kernel file ./include/linux/msi.h, plus:
struct msi_msg(9)struct pci_msi_desc(9)union msi_domain_cookie(9)struct msi_desc_data(9)struct msi_desc(9)struct msi_dev_domain(9)msi_domain_for_each_desc(9)msi_for_each_desc(9)msi_msg_set_addr(9)msi_insert_msi_desc(9)msi_free_msi_descs_range(9)msi_free_msi_descs(9)struct msi_domain_ops(9)struct msi_domain_info(9)struct msi_domain_template(9)struct msi_parent_ops(9)
and that's the whole page, bestie π§ this one lives over in ./include/linux and it's dated October 2026 β so yeah, mark your calendars, the Kernel API Manual said what it said ππ
π¦ 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