CPU: Wrong CPU Load %.
[tomato.git] / release / src / router / ppp / solaris / ppp_ahdlc_mod.c
blobf81be8abbdeae248e0833b0c3c039d2123984284
1 #include <sys/types.h>
2 #include <sys/param.h>
3 #include <sys/conf.h>
4 #include <sys/modctl.h>
5 #include <sys/sunddi.h>
7 extern struct streamtab ppp_ahdlcinfo;
9 static struct fmodsw fsw = {
10 "ppp_ahdl",
11 &ppp_ahdlcinfo,
12 D_NEW | D_MP | D_MTQPAIR
15 extern struct mod_ops mod_strmodops;
17 static struct modlstrmod modlstrmod = {
18 &mod_strmodops,
19 "PPP async HDLC module",
20 &fsw
23 static struct modlinkage modlinkage = {
24 MODREV_1,
25 (void *) &modlstrmod,
26 NULL
30 * Entry points for modloading.
32 int
33 _init(void)
35 return mod_install(&modlinkage);
38 int
39 _fini(void)
41 return mod_remove(&modlinkage);
44 int
45 _info(mip)
46 struct modinfo *mip;
48 return mod_info(&modlinkage, mip);