From d8ad26a703322095a4966e38f8df07e18c1e9e6a Mon Sep 17 00:00:00 2001 From: Chia-Hao Chiu Date: Sun, 28 Sep 2025 23:41:20 +0800 Subject: [PATCH] Correct module name in rmmod example The rmmod command in the example used a hyphen (hello-5), but Linux kernel module names conventionally use underscores (hello_5) to align with C identifier naming rules. This change corrects the module name to use an underscore, ensuring the documentation is consistent and avoiding potential confusion for readers trying to run the command. Signed-off-by: Chia-Hao Chiu --- lkmpg.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lkmpg.tex b/lkmpg.tex index c3fa29a7..2239320a 100644 --- a/lkmpg.tex +++ b/lkmpg.tex @@ -591,7 +591,7 @@ \subsection{Passing Command Line Arguments to a Module} myintarray[1] = -1 got 2 arguments for myintarray. -$ sudo rmmod hello-5 +$ sudo rmmod hello_5 $ sudo dmesg -t | tail -1 Goodbye, world 5