Getting memory map of every device in linux
device, linux, linux-kernel, memory
Solution
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).
Problem
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?