mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: lan mu <mu8lan2003@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: mmap and multiple memory chucks allocated by kmalloc()
Date: Fri, 26 Nov 2004 16:04:14 -0800 (PST)	[thread overview]
Message-ID: <20041127000414.74351.qmail@web50506.mail.yahoo.com> (raw)
In-Reply-To: <4EE0CBA31942E547B99B3D4BFAB348111ED5FF@mail.esn.co.in>

Hi experts,

I have almost 620000 bytes data store in Kernal space
and would like to pass to user space via mmap.

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?

Now I only can mmaped the first chuck buffer and make
it work.

Since I'm not in the user group list, please send
directly email to me.

Thanks your help in advance!

-Lan


	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

       reply	other threads:[~2004-11-27  0:10 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 [this message]
2004-11-28 17:25   ` Alan Cox

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=20041127000414.74351.qmail@web50506.mail.yahoo.com \
    --to=mu8lan2003@yahoo.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®