getrandom on ia32

obtain a series of random bytes

sys_getrandom(char *buf, size_t count, unsigned int flags)
number355 (0x163)
abii386
entry pointsys_getrandom
sinceLinux 3.17
man pagegetrandom(2)
sourceelixir.bootlin.com

Registers

registervalue
eax355, the syscall number
ebxchar *buf
ecxsize_t count
edxunsigned int flags
eaxthe return value

Then run int 0x80 to enter the kernel.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

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