Advertisement
Regazi

zad5

May 24th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <linux/module.h>
  2.  
  3.  
  4. static int __init program_init(void)
  5. {
  6. pr_notice("Sciezka do aktualnie wykonywanego modulu: %s\n", __FILE__);
  7. pr_notice("Numer linii, ktora aktualnie sie wykonuje: %d\n", __LINE__);
  8. return 0;
  9. }
  10.  
  11. static void __exit program_exit(void)
  12. {
  13. }
  14.  
  15. module_init(program_init);
  16. module_exit(program_exit);
  17.  
  18. MODULE_LICENSE("GPL");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement