hello2.c 349 B

123456789101112131415161718192021222324
  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. static int myinit(void)
  8. {
  9. pr_info("hello2 init\n");
  10. return 0;
  11. }
  12. static void myexit(void)
  13. {
  14. pr_info("hello2 exit\n");
  15. }
  16. module_init(myinit)
  17. module_exit(myexit)
  18. MODULE_LICENSE("GPL");