<p>Hi All,<br> <br>I am trying to access /dev/mem in my user process. I could not access because not a privileged access. I tried to use iopl(3) call in linux 2.6, but i am getting unresolved symbol for this. Is any other way to get access in user process. I am not sure how to solve this. Can you someone throw some light on this.<br>
<br> if(iopl(3)){<br> fprintf(stderr, "Cannot get I/O permissions (being root helps)");<br> return -1;<br> }<br> if ((fd = open("/dev/mem", O_RDWR | O_SYNC)) < 0) {<br> fprintf(stderr, "Failed to open /dev/mem");<br>
return -1;<br> }</p>
<p>-- <br>Regards,<br>S. Sengottuvelan.<br clear="all"><br>-- <br>Regards,<br>S. Sengottuvelan.<br></p>