Ok I understood.<br>after I call request_mem_region , can real device write some byte to this region? <br>or dont touch? I read mem region of device configuration space, start and length register<br><br>thanks<br><br><div class="gmail_quote">
2011/6/21 Mulyadi Santosa <span dir="ltr"><<a href="mailto:mulyadi.santosa@gmail.com">mulyadi.santosa@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 20/06/2011, Daniel Redway <<a href="mailto:daniel.redway85@gmail.com">daniel.redway85@gmail.com</a>> wrote:<br>
> Hello<br>
><br>
> As I understand ioremap() maps and returns virtual address<br>
> for a given physical(bus) address associated with my PCI card.<br>
> That is cool and clear.<br>
><br>
><br>
> What is the purpose of request_mem_region()?<br>
<br>
</div>checking <a href="http://lxr.linux.no/linux+v2.6.39/kernel/resource.c#L732" target="_blank">http://lxr.linux.no/linux+v2.6.39/kernel/resource.c#L732</a>, I<br>
think that function generally says "alright,I wanna reserve this<br>
memory region, so no one may touch it....until I mark it as free<br>
again"<br>
<font color="#888888"><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></blockquote></div><br>