syscall.sh / sparc64 / memfd_create
memfd_create
create an anonymous file
sys_memfd_create(const char *uname_ptr, unsigned int flags)
| number | 348 (0x15c) |
|---|---|
| abi | common |
| entry point | sys_memfd_create |
| since | Linux 5.0 |
| man page | memfd_create(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
g1 | 348, the syscall number |
o0 | const char *uname_ptr |
o1 | unsigned int flags |
o0 | the return value |
Then run t 0x6d to enter the kernel.
Same syscall on other architectures
- x64 319
- x86 356
- arm64 279
- arm 385
- riscv64 279
- x32 1073742143
- loongarch64 279
- ppc64 360
- ppc 360
- s390x 350
- mips64 5314
- mipsn32 6318
- mipso32 4354
- alpha 512
- arc 279
- csky 279
- hexagon 279
- m68k 353
- microblaze 386
- nios2 279
- openrisc 279
- parisc 340
- sh 374
- sparc 348
- xtensa 339
Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc64/memfd_create