Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/random/random_harvestq.c
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
volatile int random_kthread_control; | volatile int random_kthread_control; | ||||
/* Allow the sysadmin to select the broad category of | /* Allow the sysadmin to select the broad category of | ||||
* entropy types to harvest. | * entropy types to harvest. | ||||
*/ | */ | ||||
__read_frequently u_int hc_source_mask; | __read_frequently u_int hc_source_mask; | ||||
struct random_sources { | |||||
LIST_ENTRY(random_sources) rrs_entries; | |||||
struct random_source *rrs_source; | |||||
}; | |||||
static LIST_HEAD(sources_head, random_sources) source_list = | |||||
LIST_HEAD_INITIALIZER(source_list); | |||||
SYSCTL_NODE(_kern_random, OID_AUTO, harvest, CTLFLAG_RW, 0, | SYSCTL_NODE(_kern_random, OID_AUTO, harvest, CTLFLAG_RW, 0, | ||||
"Entropy Device Parameters"); | "Entropy Device Parameters"); | ||||
/* | /* | ||||
* Put all the harvest queue context stuff in one place. | * Put all the harvest queue context stuff in one place. | ||||
* this make is a bit easier to lock and protect. | * this make is a bit easier to lock and protect. | ||||
*/ | */ | ||||
static struct harvest_context { | static struct harvest_context { | ||||
▲ Show 20 Lines • Show All 524 Lines • Show Last 20 Lines |