malloc() in kernel and increasing mbuf and cluster size

Daniel O'Connor doconnor at gsoft.com.au
Mon Oct 17 05:34:16 PDT 2005


On Mon, 17 Oct 2005 21:19, kamal kc wrote:
> 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
It is used to do basic sanity checking and for statistics.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20051017/5c9ccd57/attachment.bin


More information about the freebsd-hackers mailing list