syscall.sh / sh / cacheflush
cacheflush
flush contents of instruction and/or data cache
sys_cacheflush(unsigned long addr, unsigned long len, int op)
| number | 123 (0x7b) |
|---|---|
| abi | common |
| entry point | sys_cacheflush |
| since | Linux 5.0 |
| man page | cacheflush(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 123, the syscall number |
r4 | unsigned long addr |
r5 | unsigned long len |
r6 | int op |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/cacheflush