1

Building Linux modules.

view story
linux-howto

http://www.linuxquestions.org – I am facing a problem while building a kernel module. file1.c: Quote: #include <linux/kernel.h> #include <linux/module.h> #include "sam.h" int __init sam_init(void) { printk(KERN_INFO "Hello, world - this is the kernel speaking\n"); return 0; } module_init(sam_init); file2.c Quote: #include <linux/kernel.h> #include <linux/module.h> #include "sam.h" void __exit sam_exit(void) { printk(KERN_INFO "Short is the life of a kernel module\n"); } module_exit(sam_exit); (HowTos)