msi_get_virq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

msi_get_virq(9) πŸ’… β€” Kernel API Manual bestie edition ✨

okay so welcome to msi_get_virq(9), straight outta the Kernel API Manual, and she is lowkey iconic. no cap, this page is short but it's giving "know exactly what this helper does" energy 🫢


🌸 NAME 🌸

msi_get_virq β€” Lookup the Linux interrupt number for a MSI index on the default interrupt domain πŸ’«


✨ SYNOPSIS ✨

the signature, verbatim, no edits bestie:

unsigned int msi_get_virq (struct device *dev , unsigned int index );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” Device for which the lookup happens. literally the device we're checking, bestie 🫑
  • index β€” The MSI index to lookup. the exact MSI index you want looked up ✨

πŸ’– RETURN πŸ’–

On success, you get the Linux interrupt number and it's > 0 β€” slay. If it's not found, you get 0, and that's the whole mood 😭

So fr fr: success means > 0, not found means 0.


πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/msi_api.h πŸ“
  • union msi_instance_cookie(9) πŸ“

okay that's the whole page, bestie 🫢 β€” cute little footer sign-off: source/version ./include/linux, date October 2026, page msi_get_virq(9), mwah πŸ’‹

πŸ“¦ where this page comes from