ioperm(2) System Calls Manual ioperm(2) ioperm - / LIBRARY Standard C library (libc, -lc) #include int ioperm(unsigned long from, unsigned long num, int turn_on); ioperm() num , from. turn_on 0, , . turn_on 0, (CAP_SYS_RAWIO). Linux 2.6.8, 0x3ff -. iopl(2) ( level 3). Linux 2.6.8, 65536 -. , fork(2) ( ). execve(2); - . , , i386. . On success, zero is returned. On error, -1 is returned, and errno is set to indicate the error. EINVAL from num. EIO ( PowerPC) . ENOMEM . EPERM . glibc has an ioperm() prototype both in and in . Avoid the latter, it is available on i386 only. Linux. Linux 2.4 , fork(2). /proc/ioports -, . . iopl(2), outb(2), capabilities(7) Azamat Hackimov , Dmitriy S. Seregin , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . ioperm(2)