* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
* OR MODIFICATIONS.
*
- * $Id: ppp_mod.c,v 1.1 1995/12/11 05:21:05 paulus Exp $
+ * $Id: ppp_mod.c,v 1.3 1999/02/26 10:53:28 paulus Exp $
*/
/*
#include <sys/conf.h>
#include <sys/modctl.h>
#include <sys/sunddi.h>
+#include <sys/ksynch.h>
#ifdef __STDC__
#define __P(x) x
static int ppp_devinfo __P((dev_info_t *, ddi_info_cmd_t, void *, void **));
extern struct streamtab pppinfo;
+extern krwlock_t ppp_lower_lock;
static dev_info_t *ppp_dip;
static struct modldrv modldrv = {
&mod_driverops, /* says this is a pseudo driver */
- "PPP-2.2 multiplexing driver",
+ "PPP-2.3 multiplexing driver",
&ppp_ops /* driver ops */
};
ddi_remove_minor_node(dip, NULL);
return DDI_FAILURE;
}
+ rw_init(&ppp_lower_lock, NULL, RW_DRIVER, NULL);
return DDI_SUCCESS;
}
dev_info_t *dip;
ddi_detach_cmd_t cmd;
{
+ rw_destroy(&ppp_lower_lock);
ddi_remove_minor_node(dip, NULL);
return DDI_SUCCESS;
}