getrandom on blackfin
obtain a series of random bytes
sys_getrandom(char *buf, size_t count, unsigned int flags)
| number | 389 (0x185) |
|---|---|
| abi | common |
| entry point | sys_getrandom |
| since | Linux 4.1 |
| man page | getrandom(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
P0 | 389, the syscall number |
R0 | char *buf |
R1 | size_t count |
R2 | unsigned int flags |
R0 | the return value |
Then run excpt 0 to enter the kernel.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 318
- x86 355
- arm64 278
- arm 384
- riscv64 278
- ia32 355
- x32 1073742142
- loongarch64 278
- ppc64 359
- ppc 359
- s390x 349
- mips64 5313
- mipsn32 6317
- mipso32 4353
- alpha 511
- arc 278
- cris 356, removed in 4.17
- csky 278
- hexagon 278
- ia64 1339, removed in 6.7
- m68k 352
- metag 278, removed in 4.17
- microblaze 385
- nds32 278, removed in 5.18
- nios2 278
- openrisc 278
- parisc 339
- score 278, removed in 4.17
- sh 373
- sparc 347
- sparc64 347
- tilegx 278, removed in 4.17
- tilepro 278, removed in 4.17
- xtensa 338
Get this as JSON: https://api.syscall.sh/v2/syscalls/blackfin/getrandom?kernel=all