]> mj.ucw.cz Git - pciutils.git/commit
i386-io-linux: Prefer usage of ioperm()
authorPali Rohár <pali@kernel.org>
Sun, 6 Nov 2022 12:58:55 +0000 (13:58 +0100)
committerPali Rohár <pali@kernel.org>
Sun, 6 Nov 2022 12:58:55 +0000 (13:58 +0100)
commitebd12ed869fd62fcd1cfeaaaed406a80cd1c7ae5
tree6fb6e725c9abd256b1ec8238bfdfd16a27101c82
parent55704534e519d38ed4c2362925b2a68cf4c1e476
i386-io-linux: Prefer usage of ioperm()

Since Linux 2.6.8, it is possible to use ioperm() syscall to gain access
for all I/O ports. Because iopl() syscall before Linux 5.5 allowed
userspace to disable interrupts, prefer usage of ioperm() syscall and ask
for access only for PCI ports.
lib/i386-io-linux.h