From 20240f9444d5f73adb94847fa906aa21f591828b Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Thu, 20 May 2010 06:23:57 -0400 Subject: [PATCH] Fixes in hello world! --- 02hello/hello | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/02hello/hello b/02hello/hello index 39de8c7..b1e5d6f 100644 --- a/02hello/hello +++ b/02hello/hello @@ -24,8 +24,8 @@ # Headers -include/linux/module.h -include/linux/init.h +* include linux/module.h +* include linux/init.h # Init and Exit Functions @@ -49,10 +49,9 @@ something has gone wrong, and some bug reports are ignored some times. # Building out-of-tree -Building an out-of-tree linux module is very simple: +Building an out-of-tree linux module is very simple. -FIX_ME - $ make -C /lib/modules/`uname -r`/build M=$PWD modules +Let's take a look at a simple command line and a simple Makefile. # Module description definitios @@ -68,8 +67,7 @@ FIX_ME Besides *MODULE\\_PARM\\_DESC* to inform user about the parameter, we must use *module\\_param*. -FIX_ME - module_param(name, type, perm); +module\\_param(name, type, perm); # Memory allocation -- 2.20.1