On Tue, 28 Apr 2009, Simon wrote: > Hi there, > I've compiled all my ideas in my brain and now i need to port it all > to the x86 architecture! I'm reading the kernel documentation for > Kbuild, makefiles and others, it seems quite simple... but i was > wondering if there was any such thing as an example dummy module that > I could copy and build upon? > > I'm thinking about the most basic module that provides Loading and > Unloading. If i could do a printk, i'd probably just make it say > 'hello world' when loading and 'bye bye' when unloading. I think if i > can get this working, the rest should be pretty smooth. > > Can anyone point me to the most simple code file that would contain a > module similar to what i'm trying to make? or a website to a tutorial > in creating my first kernel module? (i mostly need code example, but > without any extras, like a 30 lines file or less for example) once upon a time, i wrote this: http://www.crashcourse.ca/wiki/index.php/Writing_your_first_kernel_module if it doesn't work anymore, let me know and i'll fix it. rday -- ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Linked In: http://www.linkedin.com/in/rpjday Twitter: http://twitter.com/rpjday ======================================================================== -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ