mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: lan mu <mu8lan2003@yahoo.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: mmap and multiple memory chucks allocated by kmalloc()
Date: Sun, 28 Nov 2004 17:25:29 +0000	[thread overview]
Message-ID: <1101662725.16761.37.camel@localhost.localdomain> (raw)
In-Reply-To: <20041127000414.74351.qmail@web50506.mail.yahoo.com>

On Sad, 2004-11-27 at 00:04, lan mu wrote:
> Can I use the kmalloc to allocate 5 memory chucks
> (4096*30) and then use remap_page_range() to map those
> 5 chucks one by one? it not seems to work. Anyone can
> tell me if it's feasible? or I have to use vmalloc?

If they don't need to be linear you can allocate individual pages and
use a do_no_page function. See the sound/oss/via82cxxx driver


      reply	other threads:[~2004-11-28 18:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4EE0CBA31942E547B99B3D4BFAB348111ED5FF@mail.esn.co.in>
2004-11-27  0:04 ` lan mu
2004-11-28 17:25   ` Alan Cox [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=1101662725.16761.37.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mu8lan2003@yahoo.com \
    /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®