syscall.sh / sparc / sched_set_affinity
sched_set_affinity
sys_sched_setaffinity(pid_t pid, unsigned int len, unsigned long *user_mask_ptr)
| number | 160 (0xa0) |
|---|---|
| abi | common |
| entry point | sys_sched_setaffinity |
| since | Linux 5.0 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
g1 | 160, the syscall number |
o0 | pid_t pid |
o1 | unsigned int len |
o2 | unsigned long *user_mask_ptr |
o0 | the return value |
Then run t 0x10 to enter the kernel.
Same syscall on other architectures
- sparc64 160
Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc/sched_set_affinity