Advertisement
dark-Matter

cf

Mar 21st, 2021
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include <linux/module.h>
  2. #include <linux/kernel.h>
  3. #include <linux/init.h>
  4.  
  5. static int __init mod_init(void) {
  6.     pr_alert("Hello, world!\n");
  7.     return 0;
  8. }
  9.  
  10. static void __exit mod_exit(void) {
  11.     pr_alert("Module exited.\n");
  12. }
  13.  
  14. module_init(mod_init);
  15. module_exit(mod_exit);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement