From: Thadeu Lima de Souza Cascardo Date: Thu, 20 May 2010 10:23:57 +0000 (-0400) Subject: Fixes in hello world! X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fkernel%2Fslides%2F.git;a=commitdiff_plain;h=20240f9444d5f73adb94847fa906aa21f591828b Fixes in hello world! --- 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