malloc() in kernel and increasing mbuf and cluster size
Nick Strebkov
nick at humgat.org
Mon Oct 17 05:07:38 PDT 2005
Hi, Kamal
On 17.10.2005 04:49:01, kamal kc wrote:
> this may be a trivial question for many of you
> but i am confused in doing memory allocation in the
> kernel.
>
> sys/malloc.h has function prototypes for malloc()
> kern/kern_malloc.c defines the malloc()
>
> the malloc() definition is
>
> void *
> malloc(size, type, flags)
> unsigned long size;
> struct malloc_type *type;
> int flags;
>
> i understand the size and flags but what shall i
> do with the malloc_type.
man 9 malloc :-)
--
Nick Strebkov
Public key: http://humgat.org/~nick/pubkey.txt
fpr: 552C 88D6 895B 6E64 F277 D367 8A70 8132 47F5 C1B6
More information about the freebsd-hackers
mailing list