Conceptual
Login

Passing Parameters to a Module at Load Time

A module can accept settings given when it is loaded, the way a program accepts command-line arguments. That lets one driver be told which mode to use, how big a buffer to allocate, or how chatty to be, without recompiling it. Built-in code takes the same settings from the kernel command line at boot. Without this you would rebuild the kernel every time you wanted to try a different value.

Questions this Concept answers

  • Why is a module parameter preferable to editing a constant and rebuilding?