_sysctl on ia32

read/write system parameters

compat_sys_sysctl(struct __sysctl_args *args)

This syscall was removed in Linux 5.9.

number149 (0x95)
abii386
entry pointcompat_sys_sysctl
sinceLinux 3.3 or earlier (3.3 is the first release scanned for ia32)
removed inLinux 5.9
man page_sysctl(2)
sourceelixir.bootlin.com

Registers

registervalue
eax149, the syscall number
ebxstruct __sysctl_args *args
eaxthe return value

Then run int 0x80 to enter the kernel.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/_sysctl