summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/raidframevar.h
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2003-02-01 06:23:35 +0000
committerthorpej <thorpej@NetBSD.org>2003-02-01 06:23:35 +0000
commitb193480908a4b566cc9fdb05a1453a40e8a125a1 (patch)
tree64be834e331a3dc3f03d186d0cfd6daa45a60c7a /sys/dev/raidframe/raidframevar.h
parente2c139ba9fd472fb9a024f07f4865162f3670bc9 (diff)
Add extensible malloc types, adapted from FreeBSD. This turns
malloc types into a structure, a pointer to which is passed around, instead of an int constant. Allow the limit to be adjusted when the malloc type is defined, or with a function call, as suggested by Jonathan Stone.
Diffstat (limited to 'sys/dev/raidframe/raidframevar.h')
-rw-r--r--sys/dev/raidframe/raidframevar.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/raidframe/raidframevar.h b/sys/dev/raidframe/raidframevar.h
index ebd80a35463..06937fd2237 100644
--- a/sys/dev/raidframe/raidframevar.h
+++ b/sys/dev/raidframe/raidframevar.h
@@ -1,4 +1,4 @@
-/* $NetBSD: raidframevar.h,v 1.1 2001/10/04 15:43:58 oster Exp $ */
+/* $NetBSD: raidframevar.h,v 1.2 2003/02/01 06:23:40 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -111,6 +111,8 @@
#include <sys/proc.h>
#include <sys/lock.h>
+#include <sys/mallocvar.h>
+
/*
* First, define system-dependent types and constants.
*
@@ -161,6 +163,9 @@ typedef u_int64_t RF_uint64;
#define RF_TRUE 1
#define RF_FALSE 0
+/* Malloc types. */
+MALLOC_DECLARE(M_RAIDFRAME);
+
/*
* Now, some generic types
*/