Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures
hw_random.h File Reference
#include <linux/types.h>
#include <linux/list.h>

Go to the source code of this file.

Data Structures

struct  hwrng
 

Functions

: Unique RNG name.

struct hwrng - Hardware Random Number Generator driver

: Initialization callback (can be NULL). : Cleanup callback (can be NULL). : Callback to determine if data is available on the RNG. If NULL, it is assumed that there is always data available. OBSOLETE : Read data from the RNG device. Returns the number of lower random bytes in "data". Must not be NULL. OBSOLETE : New API. drivers can fill up to max bytes of data into the buffer. The buffer is aligned for any type. : Private data, for use by the RNG driver.

int hwrng_register (struct hwrng *rng)
 
void hwrng_unregister (struct hwrng *rng)
 

Function Documentation

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.