summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2013-08-24 13:54:56 +0000
committermarkm <markm@FreeBSD.org>2013-08-24 13:54:56 +0000
commitc7ceb49e1543461734711638502eabded6b8cfcc (patch)
treea587f26878cccaeae3a5a91985da95037684e6cd /sys/modules
parent6228164acab21e650d8ce41758f11a9188cdcf9d (diff)
downloadFreeBSD-src-c7ceb49e1543461734711638502eabded6b8cfcc.zip
FreeBSD-src-c7ceb49e1543461734711638502eabded6b8cfcc.tar.gz
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>
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/random/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/random/Makefile b/sys/modules/random/Makefile
index ad14899..60b62af 100644
--- a/sys/modules/random/Makefile
+++ b/sys/modules/random/Makefile
@@ -5,7 +5,7 @@
.PATH: ${.CURDIR}/../../crypto/sha2
KMOD= random
-SRCS= randomdev.c probe.c
+SRCS= randomdev.c
.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
SRCS+= nehemiah.c
SRCS+= ivy.c
OpenPOWER on IntegriCloud