Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1317827 > unrolled thread
| Started by | Baolin Wang <baolin.wang@linaro.org> |
|---|---|
| First post | 2016-01-26 13:30 +0100 |
| Last post | 2016-01-26 13:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/3] crypto: Introduce crypto_queue_len() helper function Baolin Wang <baolin.wang@linaro.org> - 2016-01-26 13:30 +0100
| From | Baolin Wang <baolin.wang@linaro.org> |
|---|---|
| Date | 2016-01-26 13:30 +0100 |
| Subject | [PATCH 1/3] crypto: Introduce crypto_queue_len() helper function |
| Message-ID | <qVaUW-42e-15@gated-at.bofh.it> |
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 <baolin.wang@linaro.org>
---
include/crypto/algapi.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index c9fe145..4f861c4 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -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);
--
1.7.9.5
Back to top | Article view | linux.kernel
csiph-web