of_iommu_get_resv_regions(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ of_iommu_get_resv_regions(9) πŸŽ€

okay so hi bestie!! welcome to the Kernel API Manual β€” this is the page for of_iommu_get_resv_regions, and it’s a reserved-region helper with serious β€œI know my way around a device tree” energy. ✨


✨ NAME ✨

  • of_iommu_get_resv_regions β€” reserved region driver helper for device tree

πŸ¦‹ SYNOPSIS πŸ¦‹

void of_iommu_get_resv_regions (struct device *dev , struct list_head *list );

That’s the exact signature, spacing and all β€” copy it with your whole chest. πŸ’…


🌸 ARGUMENTS 🌸

  • dev β€” device for which to get reserved regions; literally the device you’re getting those regions for 🫢
  • list β€” reserved region list; yep, the reserved region list, bestie πŸ“‹

πŸ’– DESCRIPTION πŸ’–

okay so here’s the tea β˜•: IOMMU drivers can use this to implement their .get_resv_regions callback for memory regions attached to a device tree node. 🫢

See the reserved-memory device tree bindings on how to use these:

Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt

That path is iconic β€” don’t lose it. πŸŽ€


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/iommu/of_iommu.c

that’s the whole page, bestie πŸ’œ β€” source/version: ./drivers/iommu, date: October 2026. now go be the main character of your own reserved-region implementation. periodt. πŸ‘‘

πŸ“¦ where this page comes from