[openbeos] FW: Re: ioperm

Hi,

I know that is doesn't exest, I've searched everywhere and even on the net I 
can't find anything.

But I will explain my problem. I'm busy with a fancontrol program for 
(Open)BeOs on Dell laptops. This program should make it possible to turn on/off 
the fans that are present in some Dell Latitude's.

I have programmed a part of the program and I can make an executable. When I 
run the executable I get the following error: 'General protection fault'.  I 
think this means that I have to reserve some memory to be able to run some 
assembly instructions.  So I thought it could be something about the 'ioperm' 
function, but I am not sure.

Is there someone who knows why I get this error and how I can fix it?

Thx.
            JR

>(For others who, like me, didn't know this one):
>Ioperm sets the port access permission bits for the process for num bytes
>starting from port address from to the value turn_on. The use of ioperm
>requires root privileges.

>As far as I know, this doesn't exist. You have to write a kernel driver for
>this. Let me ask - what are you doing?

>On 2003-10-22 at 17:41:31 [-0400], Jan-Rixt Van Hoye wrote:
>> Hi!
>>
>> Can someone tell me what function I can use in (Open)Beos instead of the
>> function 'i386_set_ioperm' from BSD or 'ioperm' from Linux? And please
tell
>> me in what library I can find it.
>>
>>
>> thx
>>     JR


Other related posts: