From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Use and define module parameters

Use and define module parameters - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Use and define module parameters

- [Instructor] A handy feature of loadable modules is that there are some configuration files to make how modules are used a little better and more convenient. And in addition, a nice feature of loadable kernel modules is that when you load them, you can potentially give some variables in the module some new initial values. So those variables will be configured as parameters to the module. To talk about configuration for modules, we want to look at the etc modules dot d sub-directory, and talk about blacklisting. For parameters in modules, we want to use the mod info minus p option so we can list the parameters that a module has. Then we're going to talk about how you pass module parameters when you load the module. Then we'll look inside the code for a loadable module, and see what you have to do to designate something as a parameter. And then we're going to look in the sys module subdirectory to see some additional…

Contents