Can we map a device address to two different memory locations?

Daniel Baluta daniel.baluta at gmail.com
Fri May 27 11:34:05 EDT 2011


On Fri, May 27, 2011 at 1:49 PM, sandeep kumar
<coolsandyforyou at gmail.com> wrote:
> Hi all,
> Memory mapping is done so that CPU can access the devices, which it cant
> unless.
>
> Now the question is can we memory map a one device resource(say some
> iomemory) to two different memory locations?
> the other way of seeing at this question is,
> Will ioremap() gives different 'virtual addresses' when called multiple
> times?

I can't see any reasons for which you can't do that.
The best way to find out, is to try it.

thanks,
Daniel.



More information about the Kernelnewbies mailing list