Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 12244

Why both ioremap() and kmap() are needed?

$
0
0

In case of memory mapped IO: both memory mapped IO and RAM are in same CPU physical address space.
When we map any higmem memory we use kmap() and when we need to map memory mapped IO we use ioremap().
So my question is why we need to separate functions to get kernel virtual address, since both (memory mapped IO and RAM) are in the same physical address space?
Why can't we have single function, as both are creating virtual address for some CPU physical address.


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>