syscall.sh / loongarch64 / dup3

dup3

duplicate a file descriptor

sys_dup3(unsigned int oldfd, unsigned int newfd, int flags)
number24 (0x18)
abicommon
entry pointsys_dup3
sinceLinux 5.19
man pagedup3(2)
sourceelixir.bootlin.com

Registers

registervalue
a724, the syscall number
a0unsigned int oldfd
a1unsigned int newfd
a2int flags
a0the return value

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/dup3