diff options
author | Matthew Macy <[email protected]> | 2019-09-05 14:49:49 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-09-05 14:49:49 -0700 |
commit | 03fdcb9adc596fb86a65edb56d8088b77ea2d891 (patch) | |
tree | c68cec08565296ad37d53677fdfbc4d5c6e7ef7d /include/sys/zfs_context.h | |
parent | 65a91b166e66a57c44b62bb5ca20ccb6f0ecc46d (diff) |
Make module tunables cross platform
Adds ZFS_MODULE_PARAM to abstract module parameter
setting to operating systems other than Linux.
Reviewed-by: Jorgen Lundman <[email protected]>
Reviewed-by: Igor Kozhukhov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #9230
Diffstat (limited to 'include/sys/zfs_context.h')
-rw-r--r-- | include/sys/zfs_context.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h index 60a248486..a55009f35 100644 --- a/include/sys/zfs_context.h +++ b/include/sys/zfs_context.h @@ -65,6 +65,7 @@ #include <sys/procfs_list.h> #include <linux/dcache_compat.h> #include <linux/utsname_compat.h> +#include <linux/mod_compat.h> #else /* _KERNEL */ @@ -201,6 +202,16 @@ extern int aok; (unsigned long)i) /* + * Tunables. + */ +#define ZFS_MODULE_PARAM(scope_prefix, name_prefix, name, type, perm, desc) + +/* + * Exported symbols + */ +#define EXPORT_SYMBOL(x) + +/* * Threads. */ typedef pthread_t kthread_t; |