#include <linux/utsname.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/major.h>
#include <linux/string.h>
#include <linux/fcntl.h>
#include <linux/slab.h>
#include <linux/random.h>
#include <linux/poll.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/genhd.h>
#include <linux/interrupt.h>
#include <linux/mm.h>
#include <linux/spinlock.h>
#include <linux/percpu.h>
#include <linux/cryptohash.h>
#include <linux/fips.h>
#include <linux/ptrace.h>
#include <linux/kmemcheck.h>
#include <asm/processor.h>
#include <asm/uaccess.h>
#include <asm/irq.h>
#include <asm/irq_regs.h>
#include <asm/io.h>
#include <trace/events/random.h>
Go to the source code of this file.
#define CREATE_TRACE_POINTS |
#define DEBUG_ENT |
( |
|
fmt, |
|
|
|
arg... |
|
) |
| do {} while (0) |
#define INPUT_POOL_WORDS 128 |
#define OUTPUT_POOL_WORDS 32 |
#define POOLBITS poolwords*32 |
#define POOLBYTES poolwords*4 |
#define SEC_XFER_SIZE 512 |
void add_input_randomness |
( |
unsigned int |
type, |
|
|
unsigned int |
code, |
|
|
unsigned int |
value |
|
) |
| |
void add_interrupt_randomness |
( |
int |
irq, |
|
|
int |
irq_flags |
|
) |
| |
void generate_random_uuid |
( |
unsigned char |
uuid_out[16] | ) |
|
unsigned int get_random_int |
( |
void |
| ) |
|
late_initcall |
( |
random_int_secret_init |
| ) |
|
module_init |
( |
rand_initialize |
| ) |
|
unsigned long randomize_range |
( |
unsigned long |
start, |
|
|
unsigned long |
end, |
|
|
unsigned long |
len |
|
) |
| |
Initial value:= {
.read = random_read,
.write = random_write,
.poll = random_poll,
.unlocked_ioctl = random_ioctl,
.fasync = random_fasync,
}
Definition at line 1297 of file random.c.
Initial value:= {
.read = urandom_read,
.write = random_write,
.unlocked_ioctl = random_ioctl,
.fasync = random_fasync,
}
Definition at line 1306 of file random.c.