public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] kmalloc() and page sizes
Date: Fri, 11 Jan 2002 16:38:52 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590698805810@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590698805788@msgid-missing>

>>>>> On Fri, 11 Jan 2002 13:09:11 +0100, Christian Hildner <christian.hildner@hob.de> said:

  Christian> David, the storage I need for my driver has to be mapped
  Christian> by the 64MB kernel page. The alloc_pages() gives me pages
  Christian> with virtual addresses outside the kernel mapped
  Christian> page. Since kmalloc() gives storage at natural alignment
  Christian> this call is perfect to overlay the storage with an
  Christian> additional mapping with 256KB page size.

The page allocator returns memory in the identity mapped kernel
segment, just like kmalloc().  In fact, kmalloc() is implemented on
top of the page allocator.  Also, the page allocator uses the buddy
system, so the memory is aligned according to the allocation order.

	--david


      parent reply	other threads:[~2002-01-11 16:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-10 10:18 [Linux-ia64] kmalloc() and page sizes Christian Hildner
2002-01-10 19:56 ` David Mosberger
2002-01-11 12:09 ` Christian Hildner
2002-01-11 16:38 ` David Mosberger [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=marc-linux-ia64-105590698805810@msgid-missing \
    --to=davidm@napali.hpl.hp.com \
    --cc=linux-ia64@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