Linux Kernel
3.7.1
|
#include <linux/time.h>
#include <linux/hrtimer.h>
#include <linux/timerqueue.h>
#include <linux/rtc.h>
#include <linux/alarmtimer.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/posix-timers.h>
#include <linux/workqueue.h>
#include <linux/freezer.h>
Go to the source code of this file.
Data Structures | |
struct | alarm_base |
Macros | |
#define | rtcdev (NULL) |
Functions | |
struct rtc_device * | alarmtimer_get_rtcdev (void) |
void | alarm_init (struct alarm *alarm, enum alarmtimer_type type, enum alarmtimer_restart(*function)(struct alarm *, ktime_t)) |
int | alarm_start (struct alarm *alarm, ktime_t start) |
int | alarm_try_to_cancel (struct alarm *alarm) |
int | alarm_cancel (struct alarm *alarm) |
u64 | alarm_forward (struct alarm *alarm, ktime_t now, ktime_t interval) |
device_initcall (alarmtimer_init) | |
#define rtcdev (NULL) |
Definition at line 123 of file alarmtimer.c.
alarm_cancel - Spins trying to cancel an alarm timer until it is done : ptr to alarm to be canceled
Returns 1 if the timer was canceled, 0 if it was not active.
Definition at line 355 of file alarmtimer.c.
Definition at line 366 of file alarmtimer.c.
void alarm_init | ( | struct alarm * | alarm, |
enum alarmtimer_type | type, | ||
enum alarmtimer_restart(*)(struct alarm *, ktime_t) | function | ||
) |
alarm_start - Sets an alarm to fire : ptr to alarm to set : time to run the alarm
Definition at line 312 of file alarmtimer.c.
alarm_try_to_cancel - Tries to cancel an alarm timer : ptr to alarm to be canceled
Returns 1 if the timer was canceled, 0 if it was not running, and -1 if the callback was running
Definition at line 334 of file alarmtimer.c.
|
read |
Definition at line 119 of file alarmtimer.c.
device_initcall | ( | alarmtimer_init | ) |