hello world module?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)

Thanks!

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux