Re: Cannot get I/O permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/4/2 Sengottuvelan S <sengottuvelan.s@xxxxxxxxx>:
>
> On Fri, Apr 1, 2011 at 3:32 PM, Sengottuvelan S <sengottuvelan.s@xxxxxxxxx>
> wrote:
>>
>> Hi All,
>>
>> I am trying to access /dev/mem in my user process. I could not access
Check the kernel config CONFIG_STRICT_DEVMEM
>> 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.
>>
>>    if(iopl(3)){
>>         fprintf(stderr, "Cannot get I/O permissions (being root helps)");
>>         return -1;
>>     }
>>
>>   if ((fd = open("/dev/mem", O_RDWR | O_SYNC)) < 0) {
>>         fprintf(stderr, "Failed to open /dev/mem");
>>         return -1;
>>     }
>>
>> --
>> Regards,
>> S. Sengottuvelan.
>
>
>
> --
> Regards,
> S. Sengottuvelan.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>



-- 
Best Regards
Lin

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux