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 - Linux Tutorial
From the course: Linux Device Drivers: Reading, Writing, and Debugging
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
The benefits of loadable modules4m 15s
-
(Locked)
Introduction to module commands4m 57s
-
(Locked)
Depmod and modprobe4m 11s
-
(Locked)
Module parameters1m 49s
-
(Locked)
Module parameters in device driver code3m 59s
-
(Locked)
Work with licensing and modules2m 35s
-
Challenge: Work with loadable modules1m 23s
-
Solution: Work with loadable modules3m 14s
-
-
-
-
-
-
-