From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: mmap to fixed adr
Date: Sun, 19 Jun 2011 22:14:10 +0700 [thread overview]
Message-ID: <BANLkTin4EB8WibuQPcfxpoHD_UQJ=z5svA@mail.gmail.com> (raw)
In-Reply-To: <4DFDE569.9060105@openbios.org>
On Sun, Jun 19, 2011 at 19:02, Volker Poplawski <volker@openbios.org> wrote:
> Hi,
>
> is there a VA range in userspace which is always safe for mmap() with
> fixed adr? (x86_64 mostly)
>
> I.e. a VA range where mmap() or ld will never map memory.
likely, you can find it out by yourself using:
cat /proc/self/maps | head
there you can find where kernel maps the very first object. Then, IMO,
all you need to do is preceed that address. Beware, IMHO, don't start
with address 0 as you might screw NULL handler.
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
prev parent reply other threads:[~2011-06-19 15:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-19 12:02 mmap to fixed adr Volker Poplawski
2011-06-19 15:14 ` Mulyadi Santosa [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='BANLkTin4EB8WibuQPcfxpoHD_UQJ=z5svA@mail.gmail.com' \
--to=mulyadi.santosa@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).