linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Rupesh S" <rupeshs@myw.ltindia.com>
To: <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Why not kmalloc() ??
Date: Sat, 17 Jul 2004 10:21:44 +0530	[thread overview]
Message-ID: <s0f8ff38.096@EMAIL> (raw)


Here I put my understanding.

The hostalloc() function allocates space from "hostalloc space" which  is basically a small pre-allocated non-caches space that has been initialized before "kernel memory allocator" is initialized. This "hostalloc space" is "Cache coherent" and not available for the "kernel memory allocator". But, "hostalloc space" cannot provide large memory buffers.

dma_alloc_consistent() function can be used allocating large memory buffers which is non-cached.

How is dma_alloc_consistent() different from kmalloc() ? - Is it that dma_alloc_consistent() allocates memory which is non-cached and kmaloc() allocates cached memory?



Thanks
--
Rupesh S


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2004-07-17  4:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-17  4:51 Rupesh S [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-07-16  9:25 Why not kmalloc() ?? Rupesh S
2004-07-16 11:34 ` Magnus Damm
2004-07-16 12:06   ` sanjeev ramachandran
2004-07-16 13:32     ` Dan Malek
2004-07-16 14:06       ` Mark Chambers
2004-07-16 15:42         ` Rune Torgersen
2004-07-16 19:03           ` Dan Malek
2004-07-16 19:02         ` Dan Malek
2004-07-16 13:29   ` Dan Malek
2004-07-16 11:46 ` Dan Malek

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=s0f8ff38.096@EMAIL \
    --to=rupeshs@myw.ltindia.com \
    --cc=linuxppc-embedded@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).