hello2.c 368 B

12345678910111213141516171819202122232425
  1. /*
  2. Hello world module 2.
  3. Mostly to check that our build infrastructure can handle more than one module!
  4. */
  5. #include <linux/module.h>
  6. #include <linux/kernel.h>
  7. MODULE_LICENSE("GPL");
  8. static int myinit(void)
  9. {
  10. printk(KERN_INFO "hello2 init\n");
  11. return 0;
  12. }
  13. static void myexit(void)
  14. {
  15. printk(KERN_INFO "hello2 exit\n");
  16. }
  17. module_init(myinit)
  18. module_exit(myexit)