msi_get_virq(9)
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
- 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