Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting memory map of every device in linux

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?

like image 844
manugupt1 Avatar asked Apr 26 '12 13:04

manugupt1


1 Answers

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).

like image 105
mpe Avatar answered Nov 02 '22 20:11

mpe