From: "Christophe Beaumont" <christophe@paracel.com>
To: "Linux-Kernel" <linux-kernel@vger.kernel.org>
Subject: [Q] mmap/munmap of physical address
Date: Thu, 28 Jun 2001 18:08:17 -0700 [thread overview]
Message-ID: <NFBBINOGHMOOBMPNBAHKMEFLCEAA.christophe@paracel.com> (raw)
Hi,
I am fighting with a little problem here.
I have reserved a chunk of physical memory for my personnal
use and out of the kernel scope (linux mem=1024M).
I have now to handle this reserved memory by myself with
a simple scheme (I need BIG contiguous memory chunks (over
64Megs, and only few of them).
My idea was to create a driver for that memory & mmap()
in it. So far so good, I can mmap() from user side, driver
works fine as far as remap_page_range() is concerned.
Now comes the freeing/unmapping of those regions. I have
implemented my personnal vm_operations_struct to take care
of house keeping....
BUT
the close(struct vm_area_struct *vma) only gives me back
a virtual address, and a call to virt_to_phys(vma->start)
doesn't point back to the physical address I gave when mmaping.
As I have multiple processes, I cannot associate (virt addr,
phys addr) [2 processes could have the same virt addr pointing
to 2 different physical areas].
I am wondering if there is something totally obvious I am
missing there in the process (i.e., is there unmap_page_range
taking the virtual address as input... ;) )
Thanks in advance...
Christophe Beaumont
Sr Software Engineer Phone: 626-744-2078
Paracel, Inc. Fax: 626-744-2001
1055 East Colorado Blvd, email: chris.beaumont@paracel.com
Pasadena, CA 91106-2341 www: www.paracel.com
reply other threads:[~2001-06-29 1:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=NFBBINOGHMOOBMPNBAHKMEFLCEAA.christophe@paracel.com \
--to=christophe@paracel.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®