Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.     #include <linux/init.h>
  2.  
  3.     #include <linux/module.h>
  4.  
  5.     MODULE_LICENSE("Dual BSD/GPL");
  6.  
  7.     static int hello_init(void)
  8.  
  9.     {
  10.  
  11.     printk(KERN_ALERT "Hello, world\n");
  12.  
  13.     return 0;
  14.  
  15.     }
  16.  
  17.     static void hello_exit(void)
  18.  
  19.     {
  20.  
  21.     printk(KERN_ALERT "Sayonara\n");
  22.  
  23.     }
  24.  
  25.     module_init(hello_init);
  26.  
  27.     module_exit(hello_exit);