syscall.sh / x32 / ioperm
ioperm
set I/O port permissions
sys_ioperm(unsigned long from, unsigned long num, int turn_on)
| number | 1073741997 (0x400000ad) |
|---|---|
| abi | common |
| entry point | sys_ioperm |
| since | Linux 3.4 |
| man page | ioperm(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741997, the syscall number |
rdi | unsigned long from |
rsi | unsigned long num |
rdx | int turn_on |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/ioperm