From: Alex Tomas <bzzz@tmi.comex.ru>
To: sridhar vaidyanathan <sridharv@ufl.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: mmaping /dev/mem
Date: 13 Mar 2003 23:49:59 +0300 [thread overview]
Message-ID: <m3bs0fat54.fsf@lexa.home.net> (raw)
In-Reply-To: <1047515807.3e6fd29f92939@webmail.health.ufl.edu>
>>>>> sridhar vaidyanathan (sv) writes:
sv> I have a problem mmaping /dev/mem on some address in RAM. I am
sv> aware of caveats,but I am trying to mmap a region which I am sure
sv> is not in use by the kernel(some additional code does this and
sv> returns a physical address which is what I use for mmap). The
sv> mmap call itself succeeds and /proc/pid/maps also shows that
sv> region, but I am unable to see what I write in target memory.I
sv> also tried with the O_SYNC flag as I was wondering is caching had
sv> anything to do with the results that I was seeing.No effect.
sv> This however works with a mem= option and when the mmap region
sv> falls out of the mem= boundary. any clues? Please cc as I am
sv> not subscribed sridhar
look at mm/memory.c:remap_pte_range():
if ((!VALID_PAGE(page)) || PageReserved(page))
set_pte(pte, mk_pte_phys(phys_addr, prot));
so, your pages aren't mapped at all and pte'es contain zero ...
prev parent reply other threads:[~2003-03-13 20:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-13 0:36 mmaping /dev/mem sridhar vaidyanathan
2003-03-13 20:49 ` Alex Tomas [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=m3bs0fat54.fsf@lexa.home.net \
--to=bzzz@tmi.comex.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=sridharv@ufl.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.