ioremap() twice on same memory mapped area?
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
Quoted 2 lines · Parav Pandit
Question is:
Can both the driver call theioremap()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