syslog on riscv64

read and/or clear kernel message ring buffer and set console_loglevel

sys_syslog(int type, char *buf, int len)
number116 (0x74)
abicommon
entry pointsys_syslog
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagesyslog(2)
sourceelixir.bootlin.com

Registers

registervalue
a7116, the syscall number
a0int type
a1char *buf
a2int len
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/syslog