Messages in this thread | | | Date | Mon, 11 May 2015 17:28:29 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH v5 1/5] random: Async and sync API for accessing nonblocking_pool |
| |
On Mon, May 11, 2015 at 09:30:11AM +0200, Stephan Mueller wrote: > > I will remove that in the next installment. But that means that the DRBG > kernel module (or any other module) cannot be unloaded until the work > completes.
I don't think that's a big deal.
> Are you suggesting to only leave get_blocking_random_bytes and have the caller > implementing the appropriate synchronous wait or async work?
No there should just be a single interface where you feed it a function pointer and a data pointer. This function should then be called when the pool is ready.
Cheers, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |