hello2.c 305 B

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