mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
module: icp: remove unused notification framework
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12901
This commit is contained in:
@@ -556,6 +556,26 @@ kcf_get_mech_entry(crypto_mech_type_t mech_type, kcf_mech_entry_t **mep)
|
||||
return (KCF_SUCCESS);
|
||||
}
|
||||
|
||||
/*
|
||||
* crypto_mech2id()
|
||||
*
|
||||
* Arguments:
|
||||
* . mechname: A null-terminated string identifying the mechanism name.
|
||||
*
|
||||
* Description:
|
||||
* Walks the mechanisms tables, looking for an entry that matches the
|
||||
* mechname. Once it find it, it builds the 64-bit mech_type and returns
|
||||
* it. If there are no providers for the mechanism,
|
||||
* but there is an unloaded provider, this routine will attempt
|
||||
* to load it.
|
||||
*
|
||||
* Context:
|
||||
* Process and interruption.
|
||||
*
|
||||
* Returns:
|
||||
* The unique mechanism identified by 'mechname', if found.
|
||||
* CRYPTO_MECH_INVALID otherwise.
|
||||
*/
|
||||
/*
|
||||
* Lookup the hash table for an entry that matches the mechname.
|
||||
* If there are no providers for the mechanism,
|
||||
@@ -563,8 +583,11 @@ kcf_get_mech_entry(crypto_mech_type_t mech_type, kcf_mech_entry_t **mep)
|
||||
* to load it.
|
||||
*/
|
||||
crypto_mech_type_t
|
||||
crypto_mech2id_common(const char *mechname, boolean_t load_module)
|
||||
crypto_mech2id(const char *mechname)
|
||||
{
|
||||
(void) load_module;
|
||||
return (kcf_mech_hash_find(mechname));
|
||||
}
|
||||
|
||||
#if defined(_KERNEL)
|
||||
EXPORT_SYMBOL(crypto_mech2id);
|
||||
#endif
|
||||
|
||||
@@ -287,9 +287,6 @@ kcf_sched_destroy(void)
|
||||
kmem_cache_destroy(kcf_areq_cache);
|
||||
if (kcf_sreq_cache)
|
||||
kmem_cache_destroy(kcf_sreq_cache);
|
||||
|
||||
mutex_destroy(&ntfy_list_lock);
|
||||
cv_destroy(&ntfy_list_cv);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -339,10 +336,6 @@ kcf_sched_init(void)
|
||||
/* Allocate and initialize the thread pool */
|
||||
kcfpool_alloc();
|
||||
|
||||
/* Initialize the event notification list variables */
|
||||
mutex_init(&ntfy_list_lock, NULL, MUTEX_DEFAULT, NULL);
|
||||
cv_init(&ntfy_list_cv, NULL, CV_DEFAULT, NULL);
|
||||
|
||||
/* Create the kcf kstat */
|
||||
kcf_misc_kstat = kstat_create("kcf", 0, "framework_stats", "crypto",
|
||||
KSTAT_TYPE_NAMED, sizeof (kcf_stats_t) / sizeof (kstat_named_t),
|
||||
|
||||
Reference in New Issue
Block a user