tee on loongarch64

duplicating pipe content

sys_tee(int fdin, int fdout, size_t len, unsigned int flags)
number77 (0x4d)
abicommon
entry pointsys_tee
sinceLinux 5.19 or earlier (5.19 is the first release scanned for loongarch64)
man pagetee(2)
sourceelixir.bootlin.com

Registers

registervalue
a777, the syscall number
a0int fdin
a1int fdout
a2size_t len
a3unsigned int 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/tee