diff --git a/lkmpg.tex b/lkmpg.tex index 6e4d873..4cebec8 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -364,7 +364,7 @@ This and a few other macros describing the module are illustrated in the below e Modules can take command line arguments, but not with the argc/argv you might be used to. To allow arguments to be passed to your module, declare the variables that will take the values of the command line arguments as global and then use the module\_param() macro, (defined in linux/moduleparam.h) to set the mechanism up. -At runtime, insmod will fill the variables with any command line arguments that are given, like ./insmod mymodule.ko myvariable=5. +At runtime, insmod will fill the variables with any command line arguments that are given, like insmod ./mymodule.ko myvariable=5. The variable declarations and macros should be placed at the beginning of the module for clarity. The example code should clear up my admittedly lousy explanation.