syscall.sh / parisc / getdents
getdents
get directory entries
sys_getdents(unsigned int fd, struct linux_dirent *dirent, unsigned int count)
| number | 141 (0x8d) |
|---|---|
| abi | common |
| entry point | sys_getdents |
| since | Linux 5.0 |
| man page | getdents(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 141, the syscall number |
r26 | unsigned int fd |
r25 | struct linux_dirent *dirent |
r24 | unsigned int count |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 78
- x86 141
- arm 141
- x32 1073741902
- ppc64 141
- ppc 141
- s390x 141
- mips64 5076
- mipsn32 6076
- mipso32 4141
- alpha 305
- m68k 141
- microblaze 141
- sh 141
- sparc 174
- sparc64 174
- xtensa 59
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/getdents