Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
rtc-lib.c File Reference
#include <linux/module.h>
#include <linux/rtc.h>

Go to the source code of this file.

Macros

#define LEAPS_THRU_END_OF(y)   ((y)/4 - (y)/100 + (y)/400)
 

Functions

int rtc_month_days (unsigned int month, unsigned int year)
 
 EXPORT_SYMBOL (rtc_month_days)
 
int rtc_year_days (unsigned int day, unsigned int month, unsigned int year)
 
 EXPORT_SYMBOL (rtc_year_days)
 
void rtc_time_to_tm (unsigned long time, struct rtc_time *tm)
 
 EXPORT_SYMBOL (rtc_time_to_tm)
 
int rtc_valid_tm (struct rtc_time *tm)
 
 EXPORT_SYMBOL (rtc_valid_tm)
 
int rtc_tm_to_time (struct rtc_time *tm, unsigned long *time)
 
 EXPORT_SYMBOL (rtc_tm_to_time)
 
ktime_t rtc_tm_to_ktime (struct rtc_time tm)
 
 EXPORT_SYMBOL_GPL (rtc_tm_to_ktime)
 
struct rtc_time rtc_ktime_to_tm (ktime_t kt)
 
 EXPORT_SYMBOL_GPL (rtc_ktime_to_tm)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define LEAPS_THRU_END_OF (   y)    ((y)/4 - (y)/100 + (y)/400)

Definition at line 28 of file rtc-lib.c.

Function Documentation

EXPORT_SYMBOL ( rtc_month_days  )
EXPORT_SYMBOL ( rtc_year_days  )
EXPORT_SYMBOL ( rtc_time_to_tm  )
EXPORT_SYMBOL ( rtc_valid_tm  )
EXPORT_SYMBOL ( rtc_tm_to_time  )
EXPORT_SYMBOL_GPL ( rtc_tm_to_ktime  )
EXPORT_SYMBOL_GPL ( rtc_ktime_to_tm  )
MODULE_LICENSE ( "GPL"  )
struct rtc_time rtc_ktime_to_tm ( ktime_t  kt)
read

Definition at line 136 of file rtc-lib.c.

int rtc_month_days ( unsigned int  month,
unsigned int  year 
)

Definition at line 33 of file rtc-lib.c.

void rtc_time_to_tm ( unsigned long  time,
struct rtc_time tm 
)

Definition at line 51 of file rtc-lib.c.

ktime_t rtc_tm_to_ktime ( struct rtc_time  tm)

Definition at line 125 of file rtc-lib.c.

int rtc_tm_to_time ( struct rtc_time tm,
unsigned long time 
)

Definition at line 114 of file rtc-lib.c.

int rtc_valid_tm ( struct rtc_time tm)

Definition at line 96 of file rtc-lib.c.

int rtc_year_days ( unsigned int  day,
unsigned int  month,
unsigned int  year 
)

Definition at line 42 of file rtc-lib.c.