Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
alarm-dev.c File Reference
#include <linux/time.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/miscdevice.h>
#include <linux/fs.h>
#include <linux/platform_device.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/alarmtimer.h>
#include "android_alarm.h"

Go to the source code of this file.

Data Structures

struct  devalarm
 

Macros

#define ANDROID_ALARM_PRINT_INFO   (1U << 0)
 
#define ANDROID_ALARM_PRINT_IO   (1U << 1)
 
#define ANDROID_ALARM_PRINT_INT   (1U << 2)
 
#define alarm_dbg(debug_level_mask, fmt,...)
 
#define ANDROID_ALARM_WAKEUP_MASK
 
#define ANDROID_ALARM_SET_OLD   _IOW('a', 2, time_t) /* set alarm */
 
#define ANDROID_ALARM_SET_AND_WAIT_OLD   _IOW('a', 3, time_t)
 

Functions

 module_param_named (debug_mask, debug_mask, int, S_IRUGO|S_IWUSR|S_IWGRP)
 
 module_init (alarm_dev_init)
 
 module_exit (alarm_dev_exit)
 

Macro Definition Documentation

#define alarm_dbg (   debug_level_mask,
  fmt,
  ... 
)
Value:
do { \
if (debug_mask & ANDROID_ALARM_PRINT_##debug_level_mask) \
pr_info(fmt, ##__VA_ARGS__); \
} while (0)

Definition at line 35 of file alarm-dev.c.

#define ANDROID_ALARM_PRINT_INFO   (1U << 0)

Definition at line 28 of file alarm-dev.c.

#define ANDROID_ALARM_PRINT_INT   (1U << 2)

Definition at line 30 of file alarm-dev.c.

#define ANDROID_ALARM_PRINT_IO   (1U << 1)

Definition at line 29 of file alarm-dev.c.

#define ANDROID_ALARM_SET_AND_WAIT_OLD   _IOW('a', 3, time_t)

Definition at line 47 of file alarm-dev.c.

#define ANDROID_ALARM_SET_OLD   _IOW('a', 2, time_t) /* set alarm */

Definition at line 46 of file alarm-dev.c.

#define ANDROID_ALARM_WAKEUP_MASK
Value:
( \
ANDROID_ALARM_RTC_WAKEUP_MASK | \
ANDROID_ALARM_ELAPSED_REALTIME_WAKEUP_MASK)

Definition at line 41 of file alarm-dev.c.

Function Documentation

module_exit ( alarm_dev_exit  )
module_init ( alarm_dev_init  )
module_param_named ( debug_mask  ,
debug_mask  ,
int  ,
S_IRUGO|S_IWUSR S_IWGRP 
)