Go to the previous, next section.

ioperm

SYNOPSIS

int ioperm(unsigned long from, unsigned long num, int turn_on);

PARAMETERS

from: [in] begining of the range of ports to modify.

num: [in] number of ports to modify.

turn_on: [in] new permission value of the new ports.

DESCRIPTION

Modify the permission bits of a range of ports for the current task. The task must have superuser privileges to use the call. The range of ports that can be modified is limited to [0,3FFh].

RETURN VALUE

On success zero is returned. On error -1 is returned and errno is set to a value reflecting the kind of error.

Go to the previous, next section.