syscall.sh / sh / rmdir

rmdir

delete a directory

sys_rmdir(const char *pathname)
number40 (0x28)
abicommon
entry pointsys_rmdir
sinceLinux 5.0
man pagermdir(2)
sourceelixir.bootlin.com

Registers

registervalue
r340, the syscall number
r4const char *pathname
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/rmdir