7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 #pragma ident "%Z%%M% %I% %E% SMI"
28
29 /*
30 * This file implements the _init(9e), _info(9e) and _fini(9e) functions.
31 */
32
33 #include <sys/ib/mgt/ibmf/ibmf_impl.h>
34
35 /* Module Info */
36 static struct modlmisc ibmf_modlmisc = {
37 &mod_miscops,
38 "IB Agent Interfaces 2.0"
39 };
40
41 /* Module linkage */
42 static struct modlinkage ibmf_modlinkage = {
43 MODREV_1,
44 &ibmf_modlmisc,
45 NULL
46 };
47
48 static ibmf_state_t ibmf_state;
49 ibmf_state_t *ibmf_statep;
50
51 extern int ibmf_init();
52 extern int ibmf_fini();
53 extern int ibmf_saa_impl_init();
54 extern int ibmf_saa_impl_fini();
55
56 #ifndef NPROBE
57 extern int tnf_mod_load(void);
58 extern int tnf_mod_unload(struct modlinkage *mlp);
59 #endif
60
61 int
62 _init()
63 {
64 int status;
65
|
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27
28
29 /*
30 * This file implements the _init(9e), _info(9e) and _fini(9e) functions.
31 */
32
33 #include <sys/ib/mgt/ibmf/ibmf_impl.h>
34
35 /* Module Info */
36 static struct modlmisc ibmf_modlmisc = {
37 &mod_miscops,
38 "IB Agent Interfaces 2.0"
39 };
40
41 /* Module linkage */
42 static struct modlinkage ibmf_modlinkage = {
43 MODREV_1,
44 { &ibmf_modlmisc,
45 NULL }
46 };
47
48 static ibmf_state_t ibmf_state;
49 ibmf_state_t *ibmf_statep;
50
51 extern int ibmf_init();
52 extern int ibmf_fini();
53 extern int ibmf_saa_impl_init();
54 extern int ibmf_saa_impl_fini();
55
56 #ifndef NPROBE
57 extern int tnf_mod_load(void);
58 extern int tnf_mod_unload(struct modlinkage *mlp);
59 #endif
60
61 int
62 _init()
63 {
64 int status;
65
|