modify_ldt on ia32
get or set a per-process LDT entry
sys_modify_ldt(int func, void *ptr, unsigned long bytecount)
| number | 123 (0x7b) |
|---|---|
| abi | i386 |
| kconfig | CONFIG_MODIFY_LDT_SYSCALL |
| entry point | sys_modify_ldt |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | modify_ldt(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 123, the syscall number |
ebx | int func |
ecx | void *ptr |
edx | unsigned long bytecount |
eax | the 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/modify_ldt