diff options
author | pjd <pjd@FreeBSD.org> | 2007-04-10 13:26:45 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-04-10 13:26:45 +0000 |
commit | 3a0d881c5aa9733611b908366af0a852a5bdb42c (patch) | |
tree | d08614a9e731e0a12b379570afc37bd98596c342 /cddl | |
parent | 481ae46b8bdda94193c11002a321c0ec0d9c2e4a (diff) | |
download | FreeBSD-src-3a0d881c5aa9733611b908366af0a852a5bdb42c.zip FreeBSD-src-3a0d881c5aa9733611b908366af0a852a5bdb42c.tar.gz |
MFp4: Add missing kmem_size() definition.
Diffstat (limited to 'cddl')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h | 1 |
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 04b9da4..d46948e 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) |