param_check_##type(name, &(value)); module_param_call(name, param_set_##type, param_get_##type, &value, perm); __MODULE_PARM_TYPE(name, #type) #define module_param(name, type, perm) module_param_named(name, name, type, perm) (3)module_param使用了3个参数:变量名,它的类型,以及...
module_param_call is now completely consistent with module_param_cb, so there is no need to keep two macros. Convert module_param_call to module_param_cb since former is obsolete and latter is more kernel-ish. Link: https://lkml.kernel.org/r/20220909083947.3595610-1-liushixin2@huawei.com...
51CTO博客已为您找到关于module_param_call的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及module_param_call问答内容。更多module_param_call相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
No info on module_param_call. But it looks like a mechanism to register callbacks to get/set values of module params. module_param_call(name, set, get, arg, perm) Wonder what's the use of arg and perm ?? arg is argument and perm is permission for the variable. And yes it is sim...
module_param_call(shuffle, shuffle_store, shuffle_show, &shuffle_param, 0400);static const struct kernel_param_ops shuffle_param_ops = { .set = shuffle_param_set, .get = param_get_bool, }; module_param_cb(shuffle, &shuffle_param_ops, &shuffle_param, 0400);/...
module_param_call(shuffle, shuffle_store, shuffle_show, &shuffle_param, 0400);static const struct kernel_param_ops shuffle_param_ops = { .set = shuffle_param_set, .get = param_get_bool, }; module_param_cb(shuffle, &shuffle_param_ops, &shuffle_param, 0400);/...