syscall.sh / arm / getcpu

getcpu

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

sys_getcpu(unsigned *cpup, unsigned *nodep, void *unused)
number345 (0x159)
abicommon
entry pointsys_getcpu
sinceLinux 4.10
man pagegetcpu(2)
sourceelixir.bootlin.com

Registers

registervalue
r7345, the syscall number
r0unsigned *cpup
r1unsigned *nodep
r2void *unused
r0the 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/arm/getcpu