ioperm(2) System Calls Manual ioperm(2) ioperm - / C (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. . 0. -1, errno . EINVAL from num. EIO ( PowerPC) . ENOMEM . EPERM . glibc ioperm() , . , i386. Linux. Linux 2.4 , fork(2). /proc/ioports -, . iopl(2), outb(2), capabilities(7) () Azamat Hackimov , Dmitriy S. Seregin , Yuri Kozlov , Kirill Rekhov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . ioperm(2)