of_msi_xlate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ of_msi_xlate(9) ✨

Okay so bestie, this is the manual page for of_msi_xlate(9) β€” it's giving "kernel API manual" energy and honestly it's kind of iconic. Let's get into it πŸ’…


🌸 SYNOPSIS 🌸

u32 of_msi_xlate (struct device *dev , struct device_node **msi_np , u32 id_in );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device we're doing the mapping for. Like, the main character here. πŸ‘‘
  • msi_np β€” Pointer to the target MSI controller node, or NULL if you're just here for the translated ID and don't even need the controller node. Okay so there's some nuance here, pay attention bestie:
    • If it's non-NULL and pointing to a non-NULL node, then only entries targeting that specific node will be matched. Narrow it down, periodt.
    • If it's non-NULL and pointing to NULL, it will receive the first matching target node with a reference held. A little gift on the way out 🎁
  • id_in β€” the Device ID. That's it, that's the whole thing.

πŸ¦‹ DESCRIPTION πŸ¦‹

So what this function does is literally walk up the device hierarchy looking for devices with a "msi-map" or "msi-parent" property. If it finds one β€” slay β€” it applies the mapping to id_in. That's the whole vibe check right there. No cap.


⭐ RETURN ⭐

The mapped MSI id. That's the answer, bestie. 🫢


🌈 SEE ALSO 🌈


Fr fr, go read those if you want the full lore. Iykyk πŸ’–

And that's the whole page, bestie! This one lives in ./drivers/of and the date on it is October 2026 β€” so yeah, it's lowkey from the future βœ¨πŸ§šπŸ’œ

πŸ“¦ where this page comes from