From the course: Linux Device Drivers: Reading, Writing, and Debugging

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Module parameters

Module parameters

- [Instructor] Let's look quickly at configuration and parameters. So modules can have parameters which affect essentially how they're going to work, how they're configured, if you want to say that. Or you can even prevent modules from being loaded through some config files, like in the directories /etc/modules-load.d and /etc/modprobe.d. And you can get information about the parameters a module accepts with the -p option of modinfo. Without the -p modinfo and the module, we saw lots of information, including the parameters, but this is a shortcut. The /etc/modprobe.d: directory has configuration files affecting how modprobe's going to work. So it can automatically supply parameters to the modules when they're loaded. And there's some blacklist files you'll probably see in there, which will avoid loading modules. And there's also the /modules-load.d: for configuration lists of modules that you want to get loaded at boot times so that they're there. That modinfo -p will show the…

Contents