diff options
author | msmith <msmith@FreeBSD.org> | 1998-10-01 17:35:08 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-10-01 17:35:08 +0000 |
commit | c0b467b849546b99e70adc1adacacf3927776994 (patch) | |
tree | d6a065de46f15b6a53841cb2ca5e93e1b2dd7f77 /lib/libstand/zalloc_mem.h | |
parent | d6f6d292c47946695edace7dd889bee9120a21b1 (diff) | |
download | FreeBSD-src-c0b467b849546b99e70adc1adacacf3927776994.zip FreeBSD-src-c0b467b849546b99e70adc1adacacf3927776994.tar.gz |
Prune unused zalloc components as recommended by Matt Dillon. Extra debugging
code is still enabled (it's not very expensive).
Diffstat (limited to 'lib/libstand/zalloc_mem.h')
-rw-r--r-- | lib/libstand/zalloc_mem.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libstand/zalloc_mem.h b/lib/libstand/zalloc_mem.h index 8655e7b..1331194 100644 --- a/lib/libstand/zalloc_mem.h +++ b/lib/libstand/zalloc_mem.h @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: zalloc_mem.h,v 1.1 1998/09/26 01:42:39 msmith Exp $ */ /* @@ -41,20 +41,15 @@ typedef struct MemNode { } MemNode; typedef struct MemPool { - const char *mp_Ident; void *mp_Base; void *mp_End; MemNode *mp_First; - void (*mp_Panic)(const char *ctl, ...); - int (*mp_Reclaim)(struct MemPool *memPool, iaddr_t bytes); iaddr_t mp_Size; iaddr_t mp_Used; } MemPool; #define MEMNODE_SIZE_MASK ((sizeof(MemNode) <= 8) ? 7 : 15) -#define INITPOOL(name,panic,reclaim) { name, NULL, NULL, NULL, panic, reclaim } - #define ZNOTE_FREE 0 #define ZNOTE_REUSE 1 |