syscall.sh / x86 / membarrier

membarrier

issue memory barriers on a set of threads

sys_membarrier(int cmd, unsigned int flags, int cpu_id)
number375 (0x177)
abii386
entry pointsys_membarrier
sinceLinux 4.3
man pagemembarrier(2)
sourceelixir.bootlin.com

Registers

registervalue
eax375, the syscall number
ebxint cmd
ecxunsigned int flags
edxint cpu_id
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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