X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=01.hello%2F01.hello.xml;h=b57177a71a1adb4bd225469b2b4dcb9c555a8941;hb=d083f309ee0204c5af705dde6b67bcf8cb6db1b1;hp=954422fd8090276c9e84cd341990031aab24dbbb;hpb=742847bab4e62a57f89440f0721ec2687a9b566b;p=cascardo%2Fkernel%2Fold_slides%2F.git
diff --git a/01.hello/01.hello.xml b/01.hello/01.hello.xml
index 954422f..b57177a 100644
--- a/01.hello/01.hello.xml
+++ b/01.hello/01.hello.xml
@@ -37,16 +37,36 @@ We have prepared sample code to build in the samples/ directory. Try them.
Init and Exit Functions
-We use module_init and module_exit to
-declare our init and exit functions.
+We use module\_init and module\_exit
+to declare our init and exit functions.
Init and Exit Functions
-The __init and __exit marks allow the
-kernel to remove them when they are not needed, reducing memory consumption.
+The \_\_init and \_\_exit marks allow
+the kernel to remove them when they are not needed, reducing memory consumption.
+
+
+
+
+printk
+
+printk is very similar to printf. The messages are usually
+preceded by a string in the form <n>, where n is a
+priority. There are macros, like KERN\_ALERT and
+KERN\_DEBUG to use for that.
+
+
+
+
+License and taint
+
+MODULE\_LICENSE is highly recommended. A free software
+license should be used, otherwise the kernel is tainted. This indicates to
+developers that something has gone wrong, and some bug reports are ignored some
+times.