From owner-cvs-sys Fri Oct 10 07:07:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA15369 for cvs-sys-outgoing; Fri, 10 Oct 1997 07:07:27 -0700 (PDT) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA15338; Fri, 10 Oct 1997 07:07:00 -0700 (PDT) (envelope-from phk@FreeBSD.org) From: Poul-Henning Kamp Received: (from phk@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id HAA25582; Fri, 10 Oct 1997 07:06:38 -0700 (PDT) Date: Fri, 10 Oct 1997 07:06:38 -0700 (PDT) Message-Id: <199710101406.HAA25582@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/sys malloc.h mbuf.h src/sys/kern kern_malloc.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk phk 1997/10/10 07:06:38 PDT Modified files: sys/sys malloc.h mbuf.h sys/kern kern_malloc.c Log: 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 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. Revision Changes Path 1.26 +104 -189 src/sys/sys/malloc.h 1.23 +3 -3 src/sys/sys/mbuf.h 1.31 +41 -59 src/sys/kern/kern_malloc.c