From c28b227942b421ebdc03c9df9a012642fb517223 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 26 Aug 2010 11:49:16 -0700 Subject: Add linux kernel module support Setup linux kernel module support, this includes: - zfs context for kernel/user - kernel module build system integration - kernel module macros - kernel module symbol export - kernel module options Signed-off-by: Brian Behlendorf --- module/zfs/dmu_traverse.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'module/zfs/dmu_traverse.c') diff --git a/module/zfs/dmu_traverse.c b/module/zfs/dmu_traverse.c index ee7eb5f8a..775bb8358 100644 --- a/module/zfs/dmu_traverse.c +++ b/module/zfs/dmu_traverse.c @@ -567,3 +567,8 @@ traverse_pool(spa_t *spa, uint64_t txg_start, int flags, err = 0; return (err != 0 ? err : lasterr); } + +#if defined(_KERNEL) && defined(HAVE_SPL) +EXPORT_SYMBOL(traverse_dataset); +EXPORT_SYMBOL(traverse_pool); +#endif -- cgit v1.2.3