| 1461 | } |
| 1462 | |
| 1463 | void |
| 1464 | crypto_batch_enqueue(struct cryptop *crp) |
| 1465 | { |
| 1466 | |
| 1467 | CRYPTO_Q_LOCK(); |
| 1468 | TAILQ_INSERT_TAIL(&crp_q, crp, crp_next); |
| 1469 | if (crp_sleep) |
| 1470 | wakeup_one(&crp_q); |
| 1471 | CRYPTO_Q_UNLOCK(); |
| 1472 | } |
| 1473 | |
| 1474 | /* |
| 1475 | * Add an asymetric crypto request to a queue, |
no test coverage detected