syscall.sh / xtensa / syslog
syslog
read and/or clear kernel message ring buffer; set console_loglevel
sys_syslog(int type, char *buf, int len)
| number | 200 (0xc8) |
|---|---|
| abi | common |
| entry point | sys_syslog |
| since | Linux 5.0 |
| man page | syslog(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a2 | 200, the syscall number |
a6 | int type |
a3 | char *buf |
a4 | int len |
a2 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 103
- x86 103
- arm64 116
- arm 103
- riscv64 116
- x32 1073741927
- loongarch64 116
- ppc64 103
- ppc 103
- s390x 103
- mips64 5101
- mipsn32 6101
- mipso32 4103
- alpha 310
- arc 116
- csky 116
- hexagon 116
- m68k 103
- microblaze 103
- nios2 116
- openrisc 116
- parisc 103
- sh 103
- sparc 207
- sparc64 207
Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/syslog