of_msi_map_g...evice_domain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸŽ€


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