syscall.sh / xtensa / dup

dup

duplicate a file descriptor

sys_dup(unsigned int fildes)
number10 (0xa)
abicommon
entry pointsys_dup
sinceLinux 5.0
man pagedup(2)
sourceelixir.bootlin.com

Registers

registervalue
a210, the syscall number
a6unsigned int fildes
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/dup