request_mem_region

Daniel Redway daniel.redway85 at gmail.com
Tue Jun 21 02:54:36 EDT 2011


Ok I understood.
after I call request_mem_region , can real device write some byte to this
region?
or dont touch? I read mem region of device configuration space, start and
length register

thanks

2011/6/21 Mulyadi Santosa <mulyadi.santosa at gmail.com>

> On 20/06/2011, Daniel Redway <daniel.redway85 at gmail.com> wrote:
> > Hello
> >
> > As I understand ioremap() maps and returns virtual address
> > for a given physical(bus) address associated with my PCI card.
> > That is cool and clear.
> >
> >
> > What is the purpose of request_mem_region()?
>
> checking http://lxr.linux.no/linux+v2.6.39/kernel/resource.c#L732, I
> think that function generally says "alright,I wanna reserve this
> memory region, so no one may touch it....until I mark it as free
> again"
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110621/0b3751ff/attachment.html 


More information about the Kernelnewbies mailing list