Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
core.c File Reference
#include <linux/device.h>
#include <linux/hw_random.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include <linux/delay.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define RNG_MODULE_NAME   "hw_random"
 
#define PFX   RNG_MODULE_NAME ": "
 
#define RNG_MISCDEV_MINOR   183 /* official */
 

Functions

int hwrng_register (struct hwrng *rng)
 
 EXPORT_SYMBOL_GPL (hwrng_register)
 
void hwrng_unregister (struct hwrng *rng)
 
 EXPORT_SYMBOL_GPL (hwrng_unregister)
 
 MODULE_DESCRIPTION ("H/W Random Number Generator (RNG) driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define PFX   RNG_MODULE_NAME ": "

Definition at line 47 of file core.c.

#define RNG_MISCDEV_MINOR   183 /* official */

Definition at line 48 of file core.c.

#define RNG_MODULE_NAME   "hw_random"

Definition at line 46 of file core.c.

Function Documentation

EXPORT_SYMBOL_GPL ( hwrng_register  )
EXPORT_SYMBOL_GPL ( hwrng_unregister  )
int hwrng_register ( struct hwrng rng)

Register a new Hardware Random Number Generator driver.

Definition at line 298 of file core.c.

void hwrng_unregister ( struct hwrng rng)

Unregister a Hardware Random Number Generator driver.

Definition at line 345 of file core.c.

MODULE_DESCRIPTION ( "H/W Random Number Generator (RNG) driver )
MODULE_LICENSE ( "GPL"  )