---
name: "hrtimer_try_to_cancel"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/hrtimer_try_to_cancel"
---

# hrtimer\_try\_to\_cancel(9)

try to deactivate a timer

## NAME

hrtimer\_try\_to\_cancel - try to deactivate a timer

## SYNOPSIS

**int hrtimer\_try\_to\_cancel(struct hrtimer \*** *timer***);**

## ARGUMENTS

*timer*

hrtimer to stop

## RETURNS

0 when the timer was not active 1 when the timer was active -1 when the timer is currently excuting the callback function and cannot be stopped

## COPYRIGHT
