/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
/*
* Copyright 2010 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Core KCF (Kernel Cryptographic Framework). This file implements
* the loadable module entry points and module verification routines.
*/
#ifdef DEBUG
int kcf_frmwrk_debug = 0;
#else /* DEBUG */
#define KCF_FRMWRK_DEBUG(l, x)
#endif /* DEBUG */
&mod_miscops, "Kernel Crypto Framework"
};
};
extern int sys_shutdown;
int
_init()
{
/* initialize the mechanisms tables supported out-of-the-box */
/* initialize the providers tables */
/* initialize the policy table */
/* initialize soft_config_list */
/*
* Initialize scheduling structures. Note that this does NOT
* start any threads since it might not be safe to do so.
*/
/* initialize the RNG support structures */
kcf_rnd_init();
return (mod_install(&modlinkage));
}
int
{
}
/*
* We do not allow kcf to unload.
*/
int
_fini(void)
{
return (EBUSY);
}
/*
* Return a pointer to the modctl structure of the
* provider's module.
*/
struct modctl *
{
/* Get the modctl struct for this module */
else {
char *drvmod;
!= DDI_MAJOR_T_NONE) {
} else
return (NULL);
}
return (mctlp);
}