[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160809201846.GA4684@khazad-dum.debian.net>
Date: Tue, 9 Aug 2016 17:18:46 -0300
From: Henrique de Moraes Holschuh <hmh@....eng.br>
To: Jason Cooper <jason@...edaemon.net>
Cc: Herbert Xu <herbert@...dor.apana.org.au>,
Keith Packard <keithp@...thp.com>,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hwrng: core - Allow for multiple simultaneous active
hwrng devices
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
Powered by blists - more mailing lists