Subject: Re: Corret way to allocate memory in kernel ?
To: Darren Reed <email@example.com>
From: Jason Thorpe <firstname.lastname@example.org>
Date: 08/14/1996 18:07:58
On Thu, 15 Aug 1996 00:26:59 +1000 (EST)
Darren Reed <email@example.com> wrote:
> Can someone please explain what the difference is between kmem_alloc()
> and malloc() within the kernel, and which should be used when ?
Really, you should be using malloc() if you want to do general purpose
kmem_alloc() is handy for special applications, like when you want to
allocate memory and map it in the mbuf map, for example. kmem_alloc()
isn't used in very many places.
-- save the ancient forests - http://www.bayarea.net/~thorpej/forest/ --
Jason R. Thorpe firstname.lastname@example.org
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939