Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2005 22:04:10 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-hackers@freebsd.org
Cc:        kamal kc <kamal_ckk@yahoo.com>, freebsd-net@freebsd.org
Subject:   Re: malloc() in kernel and increasing mbuf and cluster size
Message-ID:  <200510172204.11162.doconnor@gsoft.com.au>
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
--nextPart2003707.nlPXxie13S
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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.

=2D-=20
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

--nextPart2003707.nlPXxie13S
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBDU5pD5ZPcIHs/zowRAvpWAKCW3QGmJhQRgjvzEJ0UAdM6R0dlzACfZx4v
4exRzp88/K58i47YpCTUJ9o=
=9elw
-----END PGP SIGNATURE-----

--nextPart2003707.nlPXxie13S--



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