projects
/
cascardo
/
kernel
/
slides
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes in hello world!
[cascardo/kernel/slides/.git]
/
02hello
/
hello
diff --git
a/02hello/hello
b/02hello/hello
index
39de8c7
..
b1e5d6f
100644
(file)
--- a/
02hello/hello
+++ b/
02hello/hello
@@
-24,8
+24,8
@@
# Headers
# Headers
-
include/
linux/module.h
-
include/
linux/init.h
+
* include
linux/module.h
+
* include
linux/init.h
# Init and Exit Functions
# 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 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
# Module description definitios
@@
-68,8
+67,7
@@
FIX_ME
Besides *MODULE\\_PARM\\_DESC* to inform user about the parameter, we must use
*module\\_param*.
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
# Memory allocation