Changeset View
Changeset View
Standalone View
Standalone View
sys/opencrypto/crypto.c
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
static struct mtx crypto_q_mtx; | static struct mtx crypto_q_mtx; | ||||
#define CRYPTO_Q_LOCK() mtx_lock(&crypto_q_mtx) | #define CRYPTO_Q_LOCK() mtx_lock(&crypto_q_mtx) | ||||
#define CRYPTO_Q_UNLOCK() mtx_unlock(&crypto_q_mtx) | #define CRYPTO_Q_UNLOCK() mtx_unlock(&crypto_q_mtx) | ||||
SYSCTL_NODE(_kern, OID_AUTO, crypto, CTLFLAG_RW, 0, | SYSCTL_NODE(_kern, OID_AUTO, crypto, CTLFLAG_RW, 0, | ||||
"In-kernel cryptography"); | "In-kernel cryptography"); | ||||
/* | /* | ||||
* Taskqueue used to dispatch the crypto requests | * Taskqueue used to dispatch the crypto requests submitted with | ||||
* that have the CRYPTO_F_ASYNC flag | * crypto_dispatch_async . | ||||
*/ | */ | ||||
static struct taskqueue *crypto_tq; | static struct taskqueue *crypto_tq; | ||||
/* | /* | ||||
* Crypto seq numbers are operated on with modular arithmetic | * Crypto seq numbers are operated on with modular arithmetic | ||||
*/ | */ | ||||
#define CRYPTO_SEQ_GT(a,b) ((int)((a)-(b)) > 0) | #define CRYPTO_SEQ_GT(a,b) ((int)((a)-(b)) > 0) | ||||
▲ Show 20 Lines • Show All 1,862 Lines • Show Last 20 Lines |