Go to the documentation of this file.
9 #include <linux/sched.h>
10 #include <linux/module.h>
15 #include <asm/uaccess.h>
22 #define RNG_VERSION "1.0.0"
23 #define RNG_MODULE_NAME "hw_random"
25 #define RNG_MISCDEV_MINOR 183
31 static int random_fd = -1;
51 int n,
ret = 0, have_data;
57 while (have_data && size) {
101 .open = rng_dev_open,
102 .read = rng_dev_read,
113 static irqreturn_t random_interrupt(
int irq,
void *data)
123 static int __init rng_init (
void)
136 goto err_out_cleanup_hw;
144 goto err_out_cleanup_hw;
158 static void __exit rng_cleanup (
void)