timer_delete on x64
delete a POSIX per-process timer
sys_timer_delete(timer_t timer_id)
| number | 226 (0xe2) |
|---|---|
| abi | common |
| kconfig | CONFIG_POSIX_TIMERS |
| entry point | sys_timer_delete |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for x64) |
| man page | timer_delete(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 226, the syscall number |
rdi | timer_t timer_id |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 263
- arm64 111
- arm 261
- riscv64 111
- ia32 263
- x32 1073742050
- loongarch64 111
- ppc64 244
- ppc 244
- s390x 258
- mips64 5220
- mipsn32 6224
- mipso32 4261
- alpha 418
- arc 111
- blackfin 264, removed in 4.17
- cris 263, removed in 4.17
- csky 111
- frv 263, removed in 4.17
- hexagon 111
- ia64 1252, removed in 6.7
- m32r 263, removed in 4.17
- m68k 258
- metag 111, removed in 4.17
- microblaze 263
- mn10300 263, removed in 4.17
- nds32 111, removed in 5.18
- nios2 111
- openrisc 111
- parisc 254
- score 111, removed in 4.17
- sh 263
- sparc 265
- sparc64 265
- tilegx 111, removed in 4.17
- tilepro 111, removed in 4.17
- xtensa 249
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/timer_delete