|
@@ -310,6 +310,15 @@ static inline void __kernel_param_unlock(void)
|
|
|
#define core_param(name, var, type, perm) \
|
|
|
param_check_##type(name, &(var)); \
|
|
|
__module_param_call("", name, ¶m_ops_##type, &var, perm, -1, 0)
|
|
|
+
|
|
|
+/**
|
|
|
+ * core_param_unsafe - same as core_param but taints kernel
|
|
|
+ */
|
|
|
+#define core_param_unsafe(name, var, type, perm) \
|
|
|
+ param_check_##type(name, &(var)); \
|
|
|
+ __module_param_call("", name, ¶m_ops_##type, &var, perm, \
|
|
|
+ -1, KERNEL_PARAM_FL_UNSAFE)
|
|
|
+
|
|
|
#endif /* !MODULE */
|
|
|
|
|
|
/**
|