hello2.c 329 B

12345678910111213141516171819202122
  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. int init_module(void)
  9. {
  10. printk(KERN_INFO "hello2 init\n");
  11. return 0;
  12. }
  13. void cleanup_module(void)
  14. {
  15. printk(KERN_INFO "hello2 cleanup\n");
  16. }