How do I get memory map of all the physical devices that are recognized by Linux. I have already looked up at /proc/iomem and /proc/ioports. However, I was not able to find a per device memory maps. Any idea on how to achieve this?
As far as I know the only generic way is /proc/iomem
. That shows you the kernels of view of what memory ranges are assigned to who.
If you want more detail you'll need to look at each individual driver.
You might get some more information from /proc/vmallocinfo
because ioremap()
uses vmalloc
(though possibly not on all architectures).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With