aboutsummaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-04-10 13:26:45 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-04-10 13:26:45 +0000
commit9d0fe178e6095daf10dbc1e59a6502a54e6af281 (patch)
treed08614a9e731e0a12b379570afc37bd98596c342 /cddl
parent1b6e2c02fecf92cecb91af37a4afcff9a7f6166a (diff)
downloadsrc-9d0fe178e6095daf10dbc1e59a6502a54e6af281.tar.gz
src-9d0fe178e6095daf10dbc1e59a6502a54e6af281.zip
MFp4: Add missing kmem_size() definition.
Notes
Notes: svn path=/head/; revision=168584
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h b/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h
index 04b9da4104b5..d46948e62ffb 100644
--- a/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h
+++ b/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h
@@ -290,6 +290,7 @@ extern void cv_broadcast(kcondvar_t *cv);
#define kmem_alloc(_s, _f) umem_alloc(_s, _f)
#define kmem_zalloc(_s, _f) umem_zalloc(_s, _f)
#define kmem_free(_b, _s) umem_free(_b, _s)
+#define kmem_size() (physmem * PAGESIZE)
#define kmem_cache_create(_a, _b, _c, _d, _e, _f, _g, _h, _i) \
umem_cache_create(_a, _b, _c, _d, _e, _f, _g, _h, _i)
#define kmem_cache_destroy(_c) umem_cache_destroy(_c)