Subject: Re: Corret way to allocate memory in kernel ?
To: None <perry@piermont.com>
From: Darren Reed <darrenr@cyber.com.au>
List: tech-kern
Date: 08/16/1996 01:20:13
In some mail I received from Perry E. Metzger, sie wrote
> 
> 
> Anyone care to write up a section 9 page on these?

YES! YES! YES! YES!

Please do this!  Can we do it for 1.2 ?

> Jason Thorpe writes:
> > On Thu, 15 Aug 1996 00:26:59 +1000 (EST) 
> >  Darren Reed <darrenr@cyber.com.au> 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 
> > memory allocation.
> > 
> > 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.
>