diff options
Diffstat (limited to 'crypto/internal.h')
| -rw-r--r-- | crypto/internal.h | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index d4384b08ab2..bd39bfc92ea 100644 --- a/crypto/internal.h +++ b/crypto/internal.h @@ -83,9 +83,11 @@ void crypto_exit_compress_ops(struct crypto_tfm *tfm);  struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask);  void crypto_larval_kill(struct crypto_alg *alg);  struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); -void crypto_larval_error(const char *name, u32 type, u32 mask);  void crypto_alg_tested(const char *name, int err); +void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, +			  struct crypto_alg *nalg); +void crypto_remove_final(struct list_head *list);  void crypto_shoot_alg(struct crypto_alg *alg);  struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,  				      u32 mask); @@ -101,6 +103,12 @@ int crypto_register_notifier(struct notifier_block *nb);  int crypto_unregister_notifier(struct notifier_block *nb);  int crypto_probing_notify(unsigned long val, void *v); +static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) +{ +	atomic_inc(&alg->cra_refcnt); +	return alg; +} +  static inline void crypto_alg_put(struct crypto_alg *alg)  {  	if (atomic_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy)  | 
