From: daniel.redway85@gmail.com (Daniel Redway)
To: kernelnewbies@lists.kernelnewbies.org
Subject: request_mem_region
Date: Tue, 21 Jun 2011 09:54:36 +0300 [thread overview]
Message-ID: <BANLkTinqm6hMiuj=q07-1_05wAqWznK08Q@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimS6-=k9Lxn6E2S0FEiR_jHJUrv2A@mail.gmail.com>
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@gmail.com>
> On 20/06/2011, Daniel Redway <daniel.redway85@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
prev parent reply other threads:[~2011-06-21 6:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-20 7:48 request_mem_region Daniel Redway
2011-06-21 5:22 ` request_mem_region Mulyadi Santosa
2011-06-21 6:54 ` Daniel Redway [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTinqm6hMiuj=q07-1_05wAqWznK08Q@mail.gmail.com' \
--to=daniel.redway85@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).