brk on score
change data segment size
sys_brk(unsigned long brk)
| number | 214 (0xd6) |
|---|---|
| abi | common |
| entry point | sys_brk |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | brk(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 214, the syscall number |
r4 | unsigned long brk |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
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 12
- x86 45
- arm64 214
- arm 45
- riscv64 214
- ia32 45
- x32 1073741836
- loongarch64 214
- ppc64 45
- ppc 45
- s390x 45
- mips64 5012
- mipsn32 6012
- mipso32 4045
- alpha 17
- arc 214
- blackfin 45, removed in 4.17
- cris 45, removed in 4.17
- csky 214
- frv 45, removed in 4.17
- hexagon 214
- ia64 1060, removed in 6.7
- m32r 45, removed in 4.17
- m68k 45
- metag 214, removed in 4.17
- microblaze 45
- mn10300 45, removed in 4.17
- nds32 214, removed in 5.18
- nios2 214
- openrisc 214
- parisc 45
- sh 45
- sparc 17
- sparc64 17
- tilegx 214, removed in 4.17
- tilepro 214, removed in 4.17
- xtensa 83
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/brk?kernel=all