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