title: accessing physical memory from linux kernel
body: <p>Can we access any physical memory via some kernel code.? Because, i wrote a device driver which only had init_module and exit_module.. the code is following.</p>
  
  <pre><code>int init_module(void) {
      unsigned char *p = (unsigned char*)(0x10);
      printk( KERN_INFO  "I got %u \n", *p);
      return 0;
  }
  </code></pre>
  
  <p>and  a dummy exit_module.. the problem is the computer gets hung when i do lsmod.. 
  What happens? Should i get some kinda permission to access the mem location? </p>
  
  <p>kindly explain.. I'm a beginner!</p>