]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make malloc more extensible. The malloc type is now a pointer to
authorphk <phk@FreeBSD.org>
Fri, 10 Oct 1997 14:06:34 +0000 (14:06 +0000)
committerphk <phk@FreeBSD.org>
Fri, 10 Oct 1997 14:06:34 +0000 (14:06 +0000)
commit7c874af4b84b221f2d71b950c876c07d5cb68c79
tree402c156e21cf199386d5f759b094a4524f1f8972
parent59ad45bfebed512b69728730d4d9e57b670fcc38
Make malloc more extensible.  The malloc type is now a pointer to
the struct kmemstats that describes the type.

This allows subsystems to declare their malloc types locally
and <sys/malloc.h> doesn't need tweaked everytime somebody
gets an idea.  You can even have a type local to a lkm...

I don't know if we really need the longdesc, comments welcome.

TODO: There is a single nit in ext2fs, that will be fixed later,
and I intend to remove all unused malloc types and distribute
the rest closer to their use.
sys/kern/kern_malloc.c
sys/sys/malloc.h
sys/sys/mbuf.h