syscall.sh / sh / membarrier

membarrier

issue memory barriers on a set of threads

sys_membarrier(int cmd, unsigned int flags, int cpu_id)
number378 (0x17a)
abicommon
entry pointsys_membarrier
sinceLinux 5.0
man pagemembarrier(2)
sourceelixir.bootlin.com

Registers

registervalue
r3378, the syscall number
r4int cmd
r5unsigned int flags
r6int cpu_id
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/membarrier