Skip to content

Commit

Permalink
crypto: api - Introduce crypto_queue_len() helper function
Browse files Browse the repository at this point in the history
This patch introduces crypto_queue_len() helper function to help to get the
queue length in the crypto queue list now.

Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
wangbaolin719 authored and herbertx committed Feb 1, 2016
1 parent cc831d3 commit 9f93a8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/crypto/algapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9f93a8a

Please sign in to comment.