of_map_iommu_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to this lil’ page from the Kernel API Manual for of_map_iommu_id(9) πŸ’–

of_map_iommu_id β€” translate an ID using "iommu-map" bindings. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

int of_map_iommu_id (const struct device_node *np , u32 id , struct
       of_phandle_args *arg );

πŸŽ€ ARGUMENTS πŸŽ€

  • np β€” root complex device node. that’s the starting point, bestie 🌸
  • id β€” Requester ID of the device (e.g. PCI RID/BDF or a platform stream/device ID) used as the lookup key in the iommu-map table. it’s giving β€œfind me in the map” energy πŸ”₯
  • arg β€” pointer to a struct of_phandle_args for the result. On success, arg->args_count will be set to the number of output specifier cells and arg->args[0..args_count-1] will contain the translated output specifier values. If a map entry was matched, arg->np holds a reference to the target node that the caller must release with of_node_put. πŸ‘‘
bestie, if arg->np gets set, that reference is yours to release with of_node_put. no leaking, fr fr πŸ’…

🌈 DESCRIPTION 🌈

Convenience wrapper around of_map_id using "iommu-map", "#iommu-cells", and "iommu-map-mask". lowkey iconic, highkey useful πŸ¦‹


⭐ RETURN ⭐

0 on success or a standard error code on failure. simple as that, no cap ✨


πŸ’œ SEE ALSO πŸ’œ


okay that’s the whole page, bestie β€” source/version ./drivers/of, date October 2026. slay and bye πŸ’…βœ¨

πŸ“¦ where this page comes from