Commit 9f93a8a0 authored by Baolin Wang's avatar Baolin Wang Committed by Herbert Xu

crypto: api - Introduce crypto_queue_len() helper function

This patch introduces crypto_queue_len() helper function to help to get the
queue length in the crypto queue list now.
Signed-off-by: default avatarBaolin Wang <>
Signed-off-by: default avatarHerbert Xu <>
parent cc831d32
......@@ -184,6 +184,10 @@ int crypto_enqueue_request(struct crypto_queue *queue,
struct crypto_async_request *request);
struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue);
int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm);
static inline unsigned int crypto_queue_len(struct crypto_queue *queue)
return queue->qlen;
/* These functions require the input/output to be aligned as u32. */
void crypto_inc(u8 *a, unsigned int size);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment