From: mindentropy@gmail.com (mindentropy)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Regarding remap_pfn_page
Date: Wed, 20 Jul 2011 23:11:45 +0530 [thread overview]
Message-ID: <201107202311.45621.mindentropy@gmail.com> (raw)
In-Reply-To: <CAAYFAvo+DP+itKc4A99fdJ6uYSrGyp_U1m5xSr=7vj72ayzdAA@mail.gmail.com>
>> When I mmap pages via remap_pfn_page method would the physical frames
>> assigned the linear address be contiguous?
>remap_pfn_range is just going to established a secondary virtual
>address mapping for these pages into the caller process' page tables,
>irrespective of whether these pages have kernel linear address or not.
Yes I got that. Hopefully the secondary virtual address mapping you are
referring to would be the process address space mapping. Just for testing and
making it act like I have mmap'd system RAM I have assigned kernel linear
addresses to by doing a
char *ch = (char *)kmap(pgmem = pfn_to_page(vma->vm_pgoff);
setting a value "TEST" and reading it in the userspace process after mmap'ing
the physical range.
Also I can map different process address space to the same physical page frame
right?
next prev parent reply other threads:[~2011-07-20 17:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-19 17:56 Regarding remap_pfn_page mindentropy
2011-07-20 17:18 ` Rajat Sharma
2011-07-20 17:41 ` mindentropy [this message]
2011-07-20 17:54 ` mindentropy
2011-07-20 18:29 ` mindentropy
2011-07-21 7:42 ` Rajat Sharma
2011-07-21 16:42 ` mindentropy
2011-07-21 17:56 ` Mulyadi Santosa
2011-07-21 18:18 ` mindentropy
2011-07-21 18:23 ` Rajat Sharma
2011-07-21 18:37 ` mindentropy
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=201107202311.45621.mindentropy@gmail.com \
--to=mindentropy@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 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.