module_param char 1

module_param char

module_param_string(name, string, len, perm);

Here is what the above code is Doing:
1. It’s creating a new module parameter called “mystring”
2. It’s setting the default value of the parameter to “Hello World”
3. It’s setting the permissions of the parameter to 0644
4. It’s setting the length of the parameter to the length of the string
5. It’s setting the parameter to the string “Hello World”

Similar Posts