summaryrefslogtreecommitdiff
path: root/include/linux/hw_random.h
diff options
context:
space:
mode:
authorTorsten Duwe <duwe@lst.de>2014-06-15 07:38:36 +0400
committerTheodore Ts'o <tytso@mit.edu>2014-07-15 12:49:40 +0400
commitc84dbf61a7b322188d2a7fddc0cc6317ac6713e2 (patch)
tree9c89724ab1fbfc2a21b2cd681d706791a0105694 /include/linux/hw_random.h
parent43759d4f429c8d55fd56f863542e20f4e6e8f589 (diff)
downloadlinux-c84dbf61a7b322188d2a7fddc0cc6317ac6713e2.tar.xz
random: add_hwgenerator_randomness() for feeding entropy from devices
This patch adds an interface to the random pool for feeding entropy in-kernel. Signed-off-by: Torsten Duwe <duwe@suse.de> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Acked-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/linux/hw_random.h')
-rw-r--r--include/linux/hw_random.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h
index b4b0eef5fddf..3f075ff00411 100644
--- a/include/linux/hw_random.h
+++ b/include/linux/hw_random.h
@@ -47,5 +47,7 @@ struct hwrng {
extern int hwrng_register(struct hwrng *rng);
/** Unregister a Hardware Random Number Generator driver. */
extern void hwrng_unregister(struct hwrng *rng);
+/** Feed random bits into the pool. */
+extern void add_hwgenerator_randomness(const char *buffer, size_t count, size_t entropy);
#endif /* LINUX_HWRANDOM_H_ */