diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-11 11:44:34 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-11 11:44:34 +0000 |
commit | ab5559aaabd1167a18ac882e64d97c5adc0e7d03 (patch) | |
tree | d22adafe4701e0abbccc7456fc58ae60ce75d5fb /mdk-stage1/ppp/svr4/ppp_ahdlc_mod.c | |
parent | f35f2383eed07ff16aa76f30975817117eea6cbb (diff) | |
download | drakx-ab5559aaabd1167a18ac882e64d97c5adc0e7d03.tar drakx-ab5559aaabd1167a18ac882e64d97c5adc0e7d03.tar.gz drakx-ab5559aaabd1167a18ac882e64d97c5adc0e7d03.tar.bz2 drakx-ab5559aaabd1167a18ac882e64d97c5adc0e7d03.tar.xz drakx-ab5559aaabd1167a18ac882e64d97c5adc0e7d03.zip |
Initial revision
Diffstat (limited to 'mdk-stage1/ppp/svr4/ppp_ahdlc_mod.c')
-rw-r--r-- | mdk-stage1/ppp/svr4/ppp_ahdlc_mod.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/mdk-stage1/ppp/svr4/ppp_ahdlc_mod.c b/mdk-stage1/ppp/svr4/ppp_ahdlc_mod.c new file mode 100644 index 000000000..f81be8abb --- /dev/null +++ b/mdk-stage1/ppp/svr4/ppp_ahdlc_mod.c @@ -0,0 +1,49 @@ +#include <sys/types.h> +#include <sys/param.h> +#include <sys/conf.h> +#include <sys/modctl.h> +#include <sys/sunddi.h> + +extern struct streamtab ppp_ahdlcinfo; + +static struct fmodsw fsw = { + "ppp_ahdl", + &ppp_ahdlcinfo, + D_NEW | D_MP | D_MTQPAIR +}; + +extern struct mod_ops mod_strmodops; + +static struct modlstrmod modlstrmod = { + &mod_strmodops, + "PPP async HDLC module", + &fsw +}; + +static struct modlinkage modlinkage = { + MODREV_1, + (void *) &modlstrmod, + NULL +}; + +/* + * Entry points for modloading. + */ +int +_init(void) +{ + return mod_install(&modlinkage); +} + +int +_fini(void) +{ + return mod_remove(&modlinkage); +} + +int +_info(mip) + struct modinfo *mip; +{ + return mod_info(&modlinkage, mip); +} |