syscall.sh / sparc / sched_get_affinity
sched_get_affinity
sys_sched_getaffinity(pid_t pid, unsigned int len, unsigned long *user_mask_ptr)
| number | 161 (0xa1) |
|---|---|
| abi | common |
| entry point | sys_sched_getaffinity |
| since | Linux 5.0 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
g1 | 161, 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 161
Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc/sched_get_affinity