<br><br>
<div class="gmail_quote">On Fri, May 27, 2011 at 10:54 PM, Mulyadi Santosa <span dir="ltr">&lt;<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi...<br>
<div class="im"><br>On Fri, May 27, 2011 at 17:49, sandeep kumar &lt;<a href="mailto:coolsandyforyou@gmail.com">coolsandyforyou@gmail.com</a>&gt; wrote:<br>&gt; Now the question is can we memory map a one device resource(say some<br>
&gt; iomemory) to two different memory locations?<br>&gt; the other way of seeing at this question is,<br>&gt; Will ioremap() gives different &#39;virtual addresses&#39; when called multiple<br>&gt; times?<br><br></div>I agree with Daniel, but I suggest you to think about it: in reading<br>
operation, maybe it&#39;s ok, no concurrency issues need to be taken<br>care...but how about writing? unless we&#39;re sure they are atomically or<br>uninterruptible, i see a chance that race condition might happen here.<br>
<br>Actually it&#39;s similar when you map a file into two different VMA and<br>write into it, correct?<br></blockquote>
<div><font color="#888888"><font color="#000000">Don&#39;t you think it would also be reducing the memory map space in RAM </font></font></div>
<div><font color="#888888"><font color="#000000">which is a critical resource and many other drivers would be denied</font></font></div>
<div>the mapping of there IO resources?<font color="#888888"><font color="#000000"> </font><br>--<br>regards,<br><br>Mulyadi Santosa<br>Freelance Linux trainer and consultant<br><br>blog: <a href="http://the-hydra.blogspot.com/" target="_blank">the-hydra.blogspot.com</a><br>
training: <a href="http://mulyaditraining.blogspot.com/" target="_blank">mulyaditraining.blogspot.com</a><br></font></div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5"><br>_______________________________________________<br>Kernelnewbies mailing list<br><a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br><a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br>