From 69b40b7bda5c4d361ba4f0eff53c9c0e98b188f6 Mon Sep 17 00:00:00 2001 From: fennecj Date: Thu, 29 Jul 2021 19:52:22 +0800 Subject: [PATCH] Fix typo --- lkmpg.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.