From: Christoph Lameter <cl@linux.com>
To: Pintu Agarwal <pintu_agarwal@yahoo.com>
Cc: Linux-MM <linux-mm@kvack.org>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: Memory allocation from ZONE_HIGHMEM ???
Date: Thu, 14 Jul 2011 14:34:04 -0500 (CDT) [thread overview]
Message-ID: <alpine.DEB.2.00.1107141432520.2923@router.home> (raw)
In-Reply-To: <1310625925.65469.YahooMailNeo@web162002.mail.bf1.yahoo.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 481 bytes --]
On Wed, 13 Jul 2011, Pintu Agarwal wrote:
> I have a question regarding kernel memory allocation(using kmalloc) from ZONE_HIGHMEM zone.
kmalloc does not allocate from ZONE_HIGHMEM.
> But I want to specifically allocate pages from ZONE_HIGHMEM instead of Normal zone.
> How to explicitly do that in kernel?
You must use the page allocator. The slab allocators cannot use
ZONE_HIGHMEM. ZONE_HIGHMEM contains pages that are not directly accessible
from the processor.
prev parent reply other threads:[~2011-07-14 19:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-14 6:45 Pintu Agarwal
2011-07-14 19:34 ` Christoph Lameter [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=alpine.DEB.2.00.1107141432520.2923@router.home \
--to=cl@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pintu_agarwal@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