Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. killed
  2.  
  3. #include <linux/kernel.h>
  4. #include <linux/module.h>
  5. #include <linux/moduleparam.h>
  6. #include <linux/unistd.h>
  7. #include <asm/uaccess.h>
  8. void **sys_call_table;
  9.  
  10. int module_ini(void)
  11. {
  12. write_cr0 (read_cr0 () & (~ 0x10000));\read write memory access
  13.  
  14. sys_call_table=(void*)0Xc18251c0;\my symbol address from System.map file
  15. printk(sys_call_table[__NR_read])//printing out here my problem
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement