syscall.sh / xtensa / getrandom

getrandom

obtain a series of random bytes

sys_getrandom(char *buf, size_t count, unsigned int flags)
number338 (0x152)
abicommon
entry pointsys_getrandom
sinceLinux 5.0
man pagegetrandom(2)
sourceelixir.bootlin.com

Registers

registervalue
a2338, the syscall number
a6char *buf
a3size_t count
a4unsigned int flags
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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