Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/random/random_harvestq.c
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Lines | SYSINIT(random_device_h_proc, SI_SUB_KICK_SCHEDULER, SI_ORDER_ANY, kproc_start, | ||||
&random_proc_kp); | &random_proc_kp); | ||||
static void | static void | ||||
rs_epoch_init(void *dummy __unused) | rs_epoch_init(void *dummy __unused) | ||||
{ | { | ||||
rs_epoch = epoch_alloc("Random Sources", 0); | rs_epoch = epoch_alloc("Random Sources", 0); | ||||
epoch_inited = true; | epoch_inited = true; | ||||
} | } | ||||
SYSINIT(rs_epoch_init, SI_SUB_TASKQ + 1, SI_ORDER_ANY, rs_epoch_init, NULL); | SYSINIT(rs_epoch_init, SI_SUB_EPOCH, SI_ORDER_ANY, rs_epoch_init, NULL); | ||||
/* | /* | ||||
* Run through all fast sources reading entropy for the given | * Run through all fast sources reading entropy for the given | ||||
* number of rounds, which should be a multiple of the number | * number of rounds, which should be a multiple of the number | ||||
* of entropy accumulation pools in use; it is 32 for Fortuna. | * of entropy accumulation pools in use; it is 32 for Fortuna. | ||||
*/ | */ | ||||
static void | static void | ||||
random_sources_feed(void) | random_sources_feed(void) | ||||
▲ Show 20 Lines • Show All 437 Lines • Show Last 20 Lines |