Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
class.c File Reference
#include <linux/module.h>
#include <linux/rtc.h>
#include <linux/kdev_t.h>
#include <linux/idr.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include "rtc-core.h"

Go to the source code of this file.

Macros

#define rtc_suspend   NULL
 
#define rtc_resume   NULL
 

Functions

struct rtc_devicertc_device_register (const char *name, struct device *dev, const struct rtc_class_ops *ops, struct module *owner)
 
 EXPORT_SYMBOL_GPL (rtc_device_register)
 
void rtc_device_unregister (struct rtc_device *rtc)
 
 EXPORT_SYMBOL_GPL (rtc_device_unregister)
 
 subsys_initcall (rtc_init)
 
 module_exit (rtc_exit)
 
 MODULE_AUTHOR ("Alessandro Zummo <[email protected]>")
 
 MODULE_DESCRIPTION ("RTC class support")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct classrtc_class
 

Macro Definition Documentation

#define rtc_resume   NULL

Definition at line 131 of file class.c.

#define rtc_suspend   NULL

Definition at line 130 of file class.c.

Function Documentation

EXPORT_SYMBOL_GPL ( rtc_device_register  )
EXPORT_SYMBOL_GPL ( rtc_device_unregister  )
MODULE_AUTHOR ( "Alessandro Zummo <[email protected]>"  )
MODULE_DESCRIPTION ( "RTC class support )
module_exit ( rtc_exit  )
MODULE_LICENSE ( "GPL"  )
struct rtc_device* rtc_device_register ( const char name,
struct device dev,
const struct rtc_class_ops ops,
struct module owner 
)
read

rtc_device_register - register w/ RTC class : the device to register

rtc_device_unregister() must be called when the class device is no longer needed.

Returns the pointer to the new struct class device.

Definition at line 144 of file class.c.

void rtc_device_unregister ( struct rtc_device rtc)

rtc_device_unregister - removes the previously registered RTC class device

: the RTC class device to destroy

Definition at line 235 of file class.c.

subsys_initcall ( rtc_init  )

Variable Documentation

struct class* rtc_class

Definition at line 25 of file class.c.