Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <linux/init.h>
  2. #include <linus/kernel.h>
  3. #include <linux/module.h>
  4.  
  5. int simple_init(void)
  6. {
  7. printk(KERN_INFO "Loading Module\n");
  8.  
  9. return 0;
  10. }
  11.  
  12. void simple_exit(void)
  13. {
  14. printk(KERN_INFO "Removing Modulr\n");
  15. }
  16.  
  17. module_init(simple_init);
  18. module_exit(simple_exit);
  19.  
  20. MODULE_LICENSE("GPL");
  21. MODULE_DESCRIPTION("Simple Module");
  22. MODULE_AUTHOR("SGG");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement