Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
timerqueue.h File Reference
#include <linux/rbtree.h>
#include <linux/ktime.h>

Go to the source code of this file.

Data Structures

struct  timerqueue_node
 
struct  timerqueue_head
 

Functions

void timerqueue_add (struct timerqueue_head *head, struct timerqueue_node *node)
 
void timerqueue_del (struct timerqueue_head *head, struct timerqueue_node *node)
 
struct timerqueue_nodetimerqueue_iterate_next (struct timerqueue_node *node)
 

Function Documentation

void timerqueue_add ( struct timerqueue_head head,
struct timerqueue_node node 
)

timerqueue_add - Adds timer to timerqueue.

: head of timerqueue : timer node to be added

Adds the timer node to the timerqueue, sorted by the node's expires value.

Definition at line 39 of file timerqueue.c.

void timerqueue_del ( struct timerqueue_head head,
struct timerqueue_node node 
)

timerqueue_del - Removes a timer from the timerqueue.

: head of timerqueue : timer node to be removed

Removes the timer node from the timerqueue.

Definition at line 72 of file timerqueue.c.

struct timerqueue_node* timerqueue_iterate_next ( struct timerqueue_node node)
read

timerqueue_iterate_next - Returns the timer after the provided timer

: Pointer to a timer.

Provides the timer that is after the given node. This is used, when necessary, to iterate through the list of timers in a timer list without modifying the list.

Definition at line 97 of file timerqueue.c.