Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1459096
| From | Henrique de Moraes Holschuh <hmh@hmh.eng.br> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices |
| Date | 2016-08-09 22:20 +0200 |
| Message-ID | <s4lFg-3PL-11@gated-at.bofh.it> (permalink) |
| References | <rYUw1-B7-23@gated-at.bofh.it> <s4bZf-5Sz-9@gated-at.bofh.it> <s4ixH-1HG-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 09 Aug 2016, Jason Cooper wrote:
> Perhaps a /dev/hwrng[0-9] per rng? That would lend itself nicely to a
> sysfs interface for per device quality, rate, and enabled attributes.
> e.g. /sys/class/hw_random/hwrng0/{device/,quality,rate,enabled}
IMHO, this is mightly annoying to use from inside a rngd-like utility in
a race-free, safe way. It looks to me that ioctl() would be a much
better interface for everything but the "enabled" functionality (which
should be reported to the rngd-like utility as open() on the real device
failing with, e.g., ENXIO, when that source is disabled).
--
Henrique Holschuh
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices Herbert Xu <herbert@gondor.apana.org.au> - 2016-08-09 12:00 +0200
Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices Jason Cooper <jason@lakedaemon.net> - 2016-08-09 19:00 +0200
Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices Keith Packard <keithp@keithp.com> - 2016-08-09 20:00 +0200
Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices Jason Cooper <jason@lakedaemon.net> - 2016-08-09 20:30 +0200
Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices Keith Packard <keithp@keithp.com> - 2016-08-09 21:10 +0200
Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices Henrique de Moraes Holschuh <hmh@hmh.eng.br> - 2016-08-09 22:20 +0200
Re: [PATCH] hwrng: core - Allow for multiple simultaneous active hwrng devices Keith Packard <keithp@keithp.com> - 2016-08-10 01:30 +0200
csiph-web