From: Christoph Hellwig <hch@infradead.org>
To: Christian Leber <christian@leber.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Problem with remap_page_range/mmap
Date: Fri, 26 Mar 2004 07:17:39 +0000 [thread overview]
Message-ID: <20040326071739.B2637@infradead.org> (raw)
In-Reply-To: <20040325234804.GA29507@core.home>; from christian@leber.de on Fri, Mar 26, 2004 at 12:48:04AM +0100
On Fri, Mar 26, 2004 at 12:48:04AM +0100, Christian Leber wrote:
> addr = __get_free_pages(GFP_KERNEL,0);
> int atoll_fops_mmap(struct file *filp, struct vm_area_struct *vma)
> {
> vma->vm_flags |= VM_SHM | VM_LOCKED | VM_IO;
>
> if(remap_page_range_A(vma,
> vma->vm_start, addr, 4096,
> vma->vm_page_prot)) {
> printk("remapping send space failed\n");
> return -ENXIO;
> }
You can't call remap_page_range on normal kernel pages. It works only
if you mark them PG_reserved, but even that use is usually not a good idea.
next prev parent reply other threads:[~2004-03-26 7:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-25 23:48 Christian Leber
2004-03-26 7:17 ` Christoph Hellwig [this message]
2004-03-26 9:36 ` Christian Leber
2004-03-26 9:46 ` Christoph Hellwig
2004-03-26 9:58 ` Hugang
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=20040326071739.B2637@infradead.org \
--to=hch@infradead.org \
--cc=christian@leber.de \
--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®