---
name: "hrtimer_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_cancel"
---

# hrtimer\_cancel(9)

cancel a timer and wait for the handler to finish.

## NAME

hrtimer\_cancel - cancel a timer and wait for the handler to finish.

## SYNOPSIS

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

## ARGUMENTS

*timer*

the timer to be cancelled

## RETURNS

0 when the timer was not active 1 when the timer was active

## COPYRIGHT
