syscall.sh / x32 / nanosleep
nanosleep
high-resolution sleep
sys_nanosleep(struct __kernel_timespec *rqtp, struct __kernel_timespec *rmtp)
| number | 1073741859 (0x40000023) |
|---|---|
| abi | common |
| entry point | sys_nanosleep |
| since | Linux 3.4 |
| man page | nanosleep(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741859, the syscall number |
rdi | struct __kernel_timespec *rqtp |
rsi | struct __kernel_timespec *rmtp |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 35
- x86 162
- arm64 101
- arm 162
- riscv64 101
- loongarch64 101
- ppc64 162
- ppc 162
- s390x 162
- mips64 5034
- mipsn32 6034
- mipso32 4166
- alpha 340
- arc 101
- csky 101
- hexagon 101
- m68k 162
- microblaze 162
- nios2 101
- openrisc 101
- parisc 162
- sh 162
- sparc 249
- sparc64 249
- xtensa 195
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/nanosleep