pkey_alloc on tilegx
allocate or free a protection key
sys_pkey_alloc(unsigned long flags, unsigned long init_val)
| number | 289 (0x121) |
|---|---|
| abi | common |
| family | pkeys see the whole family on tilegx |
| entry point | sys_pkey_alloc |
| since | Linux 4.9 |
| man page | pkey_alloc(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 289, the syscall number |
r0 | unsigned long flags |
r1 | unsigned long init_val |
r0 | the return value |
Then run swint1 to enter the kernel.
The kernel uses r1 to signal an error.
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 330
- x86 381
- arm64 289
- arm 395
- riscv64 289
- ia32 381
- x32 1073742154
- loongarch64 289
- ppc64 384
- ppc 384
- s390x 385
- mips64 5324
- mipsn32 6328
- mipso32 4364
- alpha 525
- arc 289
- csky 289
- hexagon 289
- ia64 1355, removed in 6.7
- m68k 382
- metag 289, removed in 4.17
- microblaze 396
- nds32 289, removed in 5.18
- nios2 289
- openrisc 289
- parisc 352
- score 289, removed in 4.17
- sh 385
- sparc 363
- sparc64 363
- tilepro 289, removed in 4.17
- xtensa 349
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilegx/pkey_alloc?kernel=all