of_msi_map_g...evice_domain(9)
π of_msi_map_get_device_domain(9)
okay so bestie, this one's straight out of the Kernel API Manual β¨ and it's giving "short but iconic" β like a two-line text from your smartest friend. no cap, it's tiny, but it matters π
πΈ NAME πΈ
of_msi_map_get_device_domain β it literally uses msi-map to find the relevant MSI domain. that's the whole assignment. periodt. π
β¨ SYNOPSIS β¨
struct irq_domain * of_msi_map_get_device_domain (struct device *dev ,
u32 id , u32 bus_token );
look at that signature. struct irq_domain * coming back at you, three args going in. chef's kiss π₯
π ARGUMENTS π
devβ the device you're doing the mapping for. like, the main character of this whole operation π«Άidβ the Device ID. yes bestie, the ID.bus_tokenβ the Bus token. short name, big job β¨
π¦ DESCRIPTION π¦
so here's the vibe: it walks up the device hierarchy π₯ looking for devices that have an "msi-map" property. that's it. that's the tea. it goes up, it checks, it finds the ones with the property. iykyk π
π RETURN π
the MSI domain for this device β or NULL on failure π so like, check your return value, bestie. don't get caught out there with a NULL and no plan π
π SEE ALSO π
the kernel file ./drivers/of/irq.c is where it lives, and here's the whole friend group β they all show up together, no skipping π
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_get_domain(9)of_msi_configure(9)
ok so real talk: if it fails you get NULL, so please actually check. i'm not gonna watch you crash π
and that's the page, bestie!! π¦ mwah π β this lil beauty ships from ./drivers/of, dated October 2026, and it's filed under the Kernel API Manual in case you need to find it again πΈπ
π¦ 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