Subject: Memory pools
To: None <tech-kern@netbsd.org, port-i386@netbsd.org>
From: =?iso-8859-1?Q?P=E5l_Halvorsen?= <paalh@unik.no>
List: tech-kern
Date: 05/18/2000 15:53:28
Hi!
Does anyone have some documentation on the memory pools?
I have made a "mmclpool" a la the mbuf mclpool:
pool_init(&mmclpool, MMCLBYTES, 0, 0, 0, "mmclpl", 0, mmclpool_alloc,
=09mmclpool_release, 0);
Does
p =3D pool_get(&mmclpool, PR_WAITOK);
return a pointer to a memory cluster to be used as the extended memory
segment in an mbuf of MMCLBYTES size or do I have to allocate this memory
by using malloc?
Thank you in advance for your help.
Best regards,
P=E5l Halvorsen