Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2005 15:07:34 +0300
From:      Nick Strebkov <nick@humgat.org>
To:        freebsd-net@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: malloc() in kernel and increasing mbuf and cluster size
Message-ID:  <20051017120734.GA820@taran.infoua.com.ua>
In-Reply-To: <20051017114901.32412.qmail@web35711.mail.mud.yahoo.com>
References:  <20051017114901.32412.qmail@web35711.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051017120734.GA820>