ioremap() twice on same memory mapped area?

2 messages, 2 authors, 2006-08-19 · open the first message on its own page

ioremap() twice on same memory mapped area?

From: Parav Pandit <hidden>
Date: 2006-08-19 06:52:47

Hi,
   
  I have memory mapped device and two device drivers wants to use the same area for different external device.
  To access the same space there is a global spin lock to avoid any race condition.
   
  Question is:
  Can both the driver call the ioremap() on the same space and get the different virtual address? or ioremap() should fail?
   
  Regards,
  Parav Pandit
   

 		
---------------------------------
Get your email and more, right on the  new Yahoo.com 

Re: ioremap() twice on same memory mapped area?

From: Dan Malek <hidden>
Date: 2006-08-19 14:13:18

On Aug 19, 2006, at 2:52 AM, Parav Pandit wrote:
Question is:
Can both the driver call the ioremap() on the same space and get  
the different virtual address?
Yes, and depending upon the implementation and optimizations,
they may also get the same virtual address.  It will work as you
intend.


	-- Dan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help