ppp/solaris/ppp_ahdlc_mod.c
Adi Masputra f9eac6e29b 1) Created a subdirectory called 'solaris'. Currently it contains a replica
of the 'svr4' directory. However, over time, files in this directory
   will contain the same code as the kernel-portion of pppd in future
   releases of Solaris, hence they most probably will change in contents
   and/or sub-structure.
2) Changed the 'configure' script to not create symbolic link Makefiles
   when the OS is SunOS 4.x. Under 'SunOS' category, only SunOS 5.x (or
   Solaris 2.x) is currently enabled.
3) Changed the rest of the utilities + pppd daemon Makefile.sol2 to point
   to the solaris/Makedefs instead of the one in svr4 directory.
2000-04-18 23:51:29 +00:00

50 lines
725 B
C

#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);
}