]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: acomp - Add ACOMP_REQUEST_ALLOC and acomp_request_alloc_extra
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 15 Mar 2025 10:30:34 +0000 (18:30 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2025 09:33:39 +0000 (17:33 +0800)
commit5416b8a741d6d09369b973cd9d4dacb1887c24df
tree1c266b14a2604cb6c14656a885af9a6dc645e64d
parent2c1808e5fe5afda22cd49f31b24219d147c785fc
crypto: acomp - Add ACOMP_REQUEST_ALLOC and acomp_request_alloc_extra

Add ACOMP_REQUEST_ALLOC which is a wrapper around acomp_request_alloc
that falls back to a synchronous stack reqeust if the allocation
fails.

Also add ACOMP_REQUEST_ON_STACK which stores the request on the stack
only.

The request should be freed with acomp_request_free.

Finally add acomp_request_alloc_extra which gives the user extra
memory to use in conjunction with the request.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/acompress.c
include/crypto/acompress.h
include/crypto/internal/acompress.h
include/linux/crypto.h