syscall.sh / s390x / getcpu

getcpu

determine CPU and NUMA node on which the calling thread is running

sys_getcpu(unsigned *cpup, unsigned *nodep, void *unused)
number311 (0x137)
abicommon
entry pointsys_getcpu
sinceLinux 4.16
man pagegetcpu(2)
sourceelixir.bootlin.com

Registers

registervalue
r1311, the syscall number
r2unsigned *cpup
r3unsigned *nodep
r4void *unused
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/getcpu