<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.flexray.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>flexray.org - C/C++ Programming</title>
 <link>http://www.flexray.org/taxonomy/term/8/0</link>
 <description>C/C++ Programming</description>
 <language>en</language>
<item>
 <title>Linux Kernel Module</title>
 <link>http://www.flexray.org/node/484</link>
 <description>&lt;p&gt;A simple kernel module.&lt;/p&gt;
&lt;p&gt;For the first time I wrote a kernel module.&lt;br /&gt;
Basic features:&lt;br /&gt;
- can allocate memory&lt;br /&gt;
- can create /proc entry&lt;br /&gt;
- can read/write to /proc file&lt;br /&gt;
- loads and unloads cleanly&lt;br /&gt;
- floods with kernel messages&lt;/p&gt;
&lt;p&gt;Compilation:&lt;br /&gt;
- make sure that you have kernel headers for currently running kernel, we look for a symlink in makefile (/lib/modules/2.6.15-26-amd64-k8/build) which we build using &quot;/lib/modules/&quot;+ uname -r + &quot;/buid&quot;. So build should point into a linux headers directory.&lt;/p&gt;
&lt;p&gt;&lt;code type=&quot;none&quot;&gt;&lt;br /&gt;
# make&lt;br /&gt;
make -C /lib/modules/2.6.15-26-amd64-k8/build M=/home/flexray/source/64/kernel_module/moj_modul&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.flexray.org/node/484&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.flexray.org/node/484#comment</comments>
 <category domain="http://www.flexray.org/taxonomy/term/2">anonymous</category>
 <category domain="http://www.flexray.org/taxonomy/term/8">C/C++ Programming</category>
 <pubDate>Thu, 26 Oct 2006 17:51:47 +0200</pubDate>
 <dc:creator>flexray</dc:creator>
 <guid isPermaLink="false">484 at http://www.flexray.org</guid>
</item>
</channel>
</rss>
