of_msi_get_domain(9)
π of_msi_get_domain(9) π
okay so this is a page straight out of the Kernel API Manual, and it's literally about one tiny little function that goes looking for your MSI domain using msi-parent. stay with me bestie, it's shorter than you think π«Ά
β¨ NAME β¨
of_msi_get_domain β uses msi-parent to find the relevant MSI domain, no cap
π¦ SYNOPSIS π¦
struct irq_domain * of_msi_get_domain (struct device *dev , const struct
device_node *np , enum irq_domain_bus_token token );
like, it hands you back a struct irq_domain * and takes three lil arguments. that's the whole vibe β¨
π ARGUMENTS π
devβ the device you're requesting the domain for, bestie. it's giving "who is this for" π«Άnpβ the device node fordev. the matching node, the other half, the pair πtokenβ the bus type for this domain. yes it matters, it's the vibe check for which domain you get πΈ
π DESCRIPTION π
so what it does is parse the msi-parent property and return the corresponding MSI domain. that's it. that's the whole function. iconic, honestly π
β RETURN β
the MSI domain for this device β or NULL on failure, and we do NOT gatekeep that possibility π
π SEE ALSO π
the kernel file lives at ./drivers/of/irq.c, and here's the whole friend group of related pages, fr fr:
irq_of_parse_and_map(9)of_irq_find_parent(9)of_irq_parse_raw(9)of_irq_parse_one(9)of_irq_to_resource(9)of_irq_get(9)of_irq_get_byname(9)of_irq_count(9)of_irq_to_resource_table(9)of_irq_init(9)of_msi_xlate(9)of_msi_map_get_device_domain(9)of_msi_configure(9)
ngl this one's a quick read β go touch some grass, then come back and read the whole of_irq_* family π
mwah π that's a wrap! this lil page came from the source tree at ./drivers/of, dated October 2026, and it's still called of_msi_get_domain(9) β same name, same numbers, always π§ββοΈβ¨
π¦ 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