---
name: "add_timer"
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/add_timer"
---

# add\_timer(9)

start a timer

## NAME

add\_timer - start a timer

## SYNOPSIS

**void add\_timer(struct timer\_list \*** *timer***);**

## ARGUMENTS

*timer*

the timer to be added

## DESCRIPTION

The kernel will do a -\>function(-\>data) callback from the timer interrupt at the -\>expires point in the future. The current time is 'jiffies'.

The timer's -\>expires, -\>function (and if the handler uses it, -\>data) fields must be set prior calling this function.

Timers with an -\>expires field in the past will be executed in the next timer tick.

## COPYRIGHT
