syscall.sh / sh / getuid

getuid

get user identity

sys_getuid16(void)
number24 (0x18)
abicommon
entry pointsys_getuid16
sinceLinux 5.0
man pagegetuid(2)
sourceelixir.bootlin.com

Registers

registervalue
r324, the syscall number
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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