Thread (1 message) 1 message, 1 author, 2015-01-26

Re: [PATCH] crypto: algif - change algif_skcipher to be asynchronous

From: Herbert Xu <hidden>
Date: 2015-01-26 02:57:44
Also in: linux-api

On Fri, Jan 23, 2015 at 02:40:56PM -0800, Tadeusz Struk wrote:
Ok, It looks to me that we *do* have all we need to implement zero copy
and AIO with algif_skcipher. The only thing we need to do is to add
support for it in skcipher_recvmsg(). I think no change is required in
neither skcipher_sendmsg(), skcipher_sendpage(), nor the if_alg interface.
Then to start using the interface asynchronously an application will
need to call aio_read() or lio_listio() instead of read(), but if
someone will use read(), then it will still work in the same
(synchronous) way as it is today.
How does this sound to you, Herbert?
It sounds good but let's see the code first :)
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help