From mboxrd@z Thu Jan 1 00:00:00 1970 From: daniel.baluta@gmail.com (Daniel Baluta) Date: Fri, 27 May 2011 18:34:05 +0300 Subject: Can we map a device address to two different memory locations? In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fri, May 27, 2011 at 1:49 PM, sandeep kumar 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.