6 extern struct streamtab pppinfo;
10 static struct vdldrv vd = {
17 static struct cdevsw ppp_cdevsw = {
18 nodev, nodev, nodev, nodev, nodev, nodev, nodev, 0,
22 static struct cdevsw old_entry;
25 ppp_vdcmd(fun, vdp, vdi, vds)
36 * It seems like modload doesn't install the cdevsw entry
39 for (maj = 1; maj < nchrdev; ++maj)
40 if (cdevsw[maj].d_open == &vd_unuseddev)
44 vd.Drv_charmajor = maj;
45 old_entry = cdevsw[maj];
46 cdevsw[maj] = ppp_cdevsw;
47 vd.Drv_cdevsw = &ppp_cdevsw;
48 vdp->vdd_vdtab = (struct vdlinkage *) &vd;
54 if (vd.Drv_charmajor > 0)
55 cdevsw[vd.Drv_charmajor] = old_entry;