1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE slides SYSTEM "/usr/share/xml/docbook/custom/slides/3.3.1/schema/dtd/slides-full.dtd">
7 <title>Hello World Module</title>
8 <author><firstname>Thadeu</firstname><surname>Cascardo</surname></author>
12 <title>Introduction</title>
14 Let's take a look at how linux modules work.
19 <title>Requirements</title>
21 We need the tools to build a module and a building linux tree. Running the built
22 linux kernel is highly recommended so we can test our modules.
25 The tools include GNU make, GCC and GNU binutils. Linux build is highly
26 dependent on the GNU toolchain, since the beginning.
31 <title>Hands-on</title>
33 We have prepared sample code to build in the samples/ directory. Try them.
38 <title>Building</title>
40 Building an out-of-tree linux module is very simple:
43 $ make -C /lib/modules/`uname -r`/build M=$PWD modules
48 <title>Module Tools</title>
69 <title>Module Description Definitions</title>