fennecj 3 年之前
父节点
当前提交
69b40b7bda
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lkmpg.tex

+ 1 - 1
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.