syscall.sh / arm64 / getcpu

getcpu

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

sys_getcpu(unsigned *cpup, unsigned *nodep, void *unused)
number168 (0xa8)
abicommon
entry pointsys_getcpu
sinceLinux 3.7
man pagegetcpu(2)
sourceelixir.bootlin.com

Registers

registervalue
x8168, the syscall number
x0unsigned *cpup
x1unsigned *nodep
x2void *unused
x0the 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/arm64/getcpu