Advertisement
Guest User

zdarovazdarova

a guest
Jul 18th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <linux/init.h>
  2. #include <linux/module.h>
  3.  
  4. MODULE_LICENSE("Dual BSD/GPL");
  5.  
  6. static int hello_init(void)
  7. {
  8. printk(KERN_ALERT "Hello, world\n");
  9. return 0;
  10. }
  11.  
  12. static void hello_exit(void)
  13. {
  14. printk(KERN_ALERT "Goodbye, cruel world\n");
  15. }
  16. module_init(hello_init);
  17. module_exit(hello_exit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement