syscall.sh / parisc / pkey_alloc
pkey_alloc
allocate or free a protection key
sys_pkey_alloc(unsigned long flags, unsigned long init_val)
| number | 352 (0x160) |
|---|---|
| abi | common |
| entry point | sys_pkey_alloc |
| since | Linux 5.1 |
| man page | pkey_alloc(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 352, the syscall number |
r26 | unsigned long flags |
r25 | unsigned long init_val |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 330
- x86 381
- arm64 289
- arm 395
- riscv64 289
- x32 1073742154
- loongarch64 289
- ppc64 384
- ppc 384
- s390x 385
- mips64 5324
- mipsn32 6328
- mipso32 4364
- alpha 525
- arc 289
- csky 289
- hexagon 289
- m68k 382
- microblaze 396
- nios2 289
- openrisc 289
- sh 385
- sparc 363
- sparc64 363
- xtensa 349
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/pkey_alloc