syscall.sh / s390x / rename

rename

change the name or location of a file

sys_rename(const char *oldname, const char *newname)
number38 (0x26)
abicommon
entry pointsys_rename
sinceLinux 4.16
man pagerename(2)
sourceelixir.bootlin.com

Registers

registervalue
r138, the syscall number
r2const char *oldname
r3const char *newname
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/rename