sched_getaffinity on ia32
set and get a thread's CPU affinity mask
compat_sys_sched_getaffinity(pid_t pid, unsigned int len, unsigned long *user_mask_ptr)
| number | 242 (0xf2) |
|---|---|
| abi | i386 |
| entry point | compat_sys_sched_getaffinity |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | sched_getaffinity(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 242, the syscall number |
ebx | pid_t pid |
ecx | unsigned int len |
edx | unsigned long *user_mask_ptr |
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
- x64 204
- x86 242
- arm64 123
- arm 242
- riscv64 123
- x32 1073742028
- loongarch64 123
- ppc64 223
- ppc 223
- s390x 240
- mips64 5196
- mipsn32 6196
- mipso32 4240
- alpha 396
- arc 123
- csky 123
- hexagon 123
- m68k 312
- microblaze 242
- nios2 123
- openrisc 123
- parisc 212
- sh 242
- sparc 260
- sparc64 260
- xtensa 157
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/sched_getaffinity