syscall.sh / ppc / pread64
pread64
read from or write to a file descriptor at a given offset
sys_ppc_pread64(unsigned int fd, char *ubuf, compat_size_t count, u32 reg6, u32 pos1, u32 pos2)
| number | 179 (0xb3) |
|---|---|
| abi | 32 |
| entry point | sys_ppc_pread64 |
| since | Linux 5.0 |
| man page | pread64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 179, the syscall number |
r3 | unsigned int fd |
r4 | char *ubuf |
r5 | compat_size_t count |
r6 | u32 reg6 |
r7 | u32 pos1 |
r8 | u32 pos2 |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x64 17
- x86 180
- arm64 67
- arm 180
- riscv64 67
- x32 1073741841
- loongarch64 67
- ppc64 179
- s390x 180
- mips64 5016
- mipsn32 6016
- mipso32 4200
- alpha 349
- arc 67
- csky 67
- hexagon 67
- m68k 180
- microblaze 180
- nios2 67
- openrisc 67
- parisc 108
- sh 180
- sparc 67
- sparc64 67
- xtensa 30
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc/pread64