From: Ira Weiny <iweiny@acm.org>
To: linuxppc <linuxppc-embedded@lists.linuxppc.org>
Subject: Attempt to remap_page_range a second time.
Date: Fri, 17 May 2002 18:44:42 -0700 [thread overview]
Message-ID: <20020517184442.39d95880.iweiny@acm.org> (raw)
Hello,
I want to be able to mmap multiple buffers from one device all with basically
an offset of 0.
What I have done is the user process calls read on the device and the data
returned from the read indicates how much data to mmap. The user process then
mmaps this data processes it and munmaps it. The next time the user process
calls read the next buffers size is returned and the next mmap call will mmap
this new buffer.
The problem is that if I use the same buffer 2 times in a row I get the
following error:
forget_pte: old mapping existed!
I have a vm_operations_struct defined which allows my buffer to be free'd on
the munmap if necessary but at this time it is only putting it on a free list
and the buffer is being reused for testing.
I can't find a call which "reverses" the remap_page_range function. For all I
can tell the do_munmap call should take care of cleaning up the old mapping.
Does this sound familiar? Does anyone know what I am doing wrong?
Do you need more details? I am using the 2.4 kernel.
Thanks,
Ira Weiny
iweiny@acm.org
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
reply other threads:[~2002-05-18 1:44 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=20020517184442.39d95880.iweiny@acm.org \
--to=iweiny@acm.org \
--cc=linuxppc-embedded@lists.linuxppc.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).