xref: /onnv-gate/usr/src/uts/common/bignum/bignum_mod.c (revision 6557:c6c4f66aed66)
1*6557Sfr41279 /*
2*6557Sfr41279  * CDDL HEADER START
3*6557Sfr41279  *
4*6557Sfr41279  * The contents of this file are subject to the terms of the
5*6557Sfr41279  * Common Development and Distribution License (the "License").
6*6557Sfr41279  * You may not use this file except in compliance with the License.
7*6557Sfr41279  *
8*6557Sfr41279  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*6557Sfr41279  * or http://www.opensolaris.org/os/licensing.
10*6557Sfr41279  * See the License for the specific language governing permissions
11*6557Sfr41279  * and limitations under the License.
12*6557Sfr41279  *
13*6557Sfr41279  * When distributing Covered Code, include this CDDL HEADER in each
14*6557Sfr41279  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*6557Sfr41279  * If applicable, add the following below this CDDL HEADER, with the
16*6557Sfr41279  * fields enclosed by brackets "[]" replaced with your own identifying
17*6557Sfr41279  * information: Portions Copyright [yyyy] [name of copyright owner]
18*6557Sfr41279  *
19*6557Sfr41279  * CDDL HEADER END
20*6557Sfr41279  */
21*6557Sfr41279 /*
22*6557Sfr41279  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*6557Sfr41279  * Use is subject to license terms.
24*6557Sfr41279  */
25*6557Sfr41279 
26*6557Sfr41279 #pragma ident	"%Z%%M%	%I%	%E% SMI"
27*6557Sfr41279 
28*6557Sfr41279 
29*6557Sfr41279 #include <sys/types.h>
30*6557Sfr41279 #include <sys/systm.h>
31*6557Sfr41279 #include <sys/modctl.h>
32*6557Sfr41279 #include <sys/cmn_err.h>
33*6557Sfr41279 #include <sys/ddi.h>
34*6557Sfr41279 
35*6557Sfr41279 
36*6557Sfr41279 extern struct mod_ops mod_cryptoops;
37*6557Sfr41279 
38*6557Sfr41279 /*
39*6557Sfr41279  * Module linkage information for the kernel.
40*6557Sfr41279  */
41*6557Sfr41279 static struct modlmisc modlmisc = {
42*6557Sfr41279 	&mod_miscops, "bignum utility module"
43*6557Sfr41279 };
44*6557Sfr41279 
45*6557Sfr41279 static struct modlinkage modlinkage = {
46*6557Sfr41279 	MODREV_1, (void *)&modlmisc, NULL
47*6557Sfr41279 };
48*6557Sfr41279 
49*6557Sfr41279 
50*6557Sfr41279 int
51*6557Sfr41279 _init(void)
52*6557Sfr41279 {
53*6557Sfr41279 	return (mod_install(&modlinkage));
54*6557Sfr41279 }
55*6557Sfr41279 
56*6557Sfr41279 int
57*6557Sfr41279 _fini(void)
58*6557Sfr41279 {
59*6557Sfr41279 	return (mod_remove(&modlinkage));
60*6557Sfr41279 }
61*6557Sfr41279 
62*6557Sfr41279 int
63*6557Sfr41279 _info(struct modinfo *modinfop)
64*6557Sfr41279 {
65*6557Sfr41279 	return (mod_info(&modlinkage, modinfop));
66*6557Sfr41279 }
67