aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2013-08-24 13:54:56 +0000
committerMark Murray <markm@FreeBSD.org>2013-08-24 13:54:56 +0000
commitddbfa6b19ee786271f561c030bf1aecf2b42cf22 (patch)
treea587f26878cccaeae3a5a91985da95037684e6cd /sys/dev/ed
parentb2e0423c48632f0e83d31d0aed1791ad4ce83107 (diff)
downloadsrc-ddbfa6b19ee786271f561c030bf1aecf2b42cf22.tar.gz
src-ddbfa6b19ee786271f561c030bf1aecf2b42cf22.zip
1) example (partially humorous random_adaptor, that I call "EXAMPLE")
* It's not meant to be used in a real system, it's there to show how the basics of how to create interfaces for random_adaptors. Perhaps it should belong in a manual page 2) Move probe.c's functionality in to random_adaptors.c * rename random_ident_hardware() to random_adaptor_choose() 3) Introduce a new way to choose (or select) random_adaptors via tunable "rngs_want" It's a list of comma separated names of adaptors, ordered by preferences. I.e.: rngs_want="yarrow,rdrand" Such setting would cause yarrow to be preferred to rdrand. If neither of them are available (or registered), then system will default to something reasonable (currently yarrow). If yarrow is not present, then we fall back to the adaptor that's first on the list of registered adaptors. 4) Introduce a way where RNGs can play a role of entropy source. This is mostly useful for HW rngs. The way I envision this is that every HW RNG will use this functionality by default. Functionality to disable this is also present. I have an example of how to use this in random_adaptor_example.c (see modload event, and init function) 5) fix kern.random.adaptors from kern.random.adaptors: yarrowpanicblock to kern.random.adaptors: yarrow,panic,block 6) add kern.random.active_adaptor to indicate currently selected adaptor: root@freebsd04:~ # sysctl kern.random.active_adaptor kern.random.active_adaptor: yarrow Submitted by: Arthur Mesh <arthurmesh@gmail.com>
Notes
Notes: svn path=/projects/random_number_generator/; revision=254784
Diffstat (limited to 'sys/dev/ed')
0 files changed, 0 insertions, 0 deletions