Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mwl/if_mwl.c
Show First 20 Lines • Show All 4,744 Lines • ▼ Show 20 Lines | sc->sc_stats.mst_rx_packets = | ||||
ifp->if_get_counter(ifp, IFCOUNTER_IPACKETS); | ifp->if_get_counter(ifp, IFCOUNTER_IPACKETS); | ||||
#endif | #endif | ||||
/* | /* | ||||
* NB: Drop the softc lock in case of a page fault; | * NB: Drop the softc lock in case of a page fault; | ||||
* we'll accept any potential inconsisentcy in the | * we'll accept any potential inconsisentcy in the | ||||
* statistics. The alternative is to copy the data | * statistics. The alternative is to copy the data | ||||
* to a local structure. | * to a local structure. | ||||
*/ | */ | ||||
return (copyout(&sc->sc_stats, | return (copyout(&sc->sc_stats, ifr_data_get_ptr(ifr), | ||||
ifr->ifr_data, sizeof (sc->sc_stats))); | sizeof (sc->sc_stats))); | ||||
#ifdef MWL_DIAGAPI | #ifdef MWL_DIAGAPI | ||||
case SIOCGMVDIAG: | case SIOCGMVDIAG: | ||||
/* XXX check privs */ | /* XXX check privs */ | ||||
return mwl_ioctl_diag(sc, (struct mwl_diag *) ifr); | return mwl_ioctl_diag(sc, (struct mwl_diag *) ifr); | ||||
case SIOCGMVRESET: | case SIOCGMVRESET: | ||||
/* XXX check privs */ | /* XXX check privs */ | ||||
MWL_LOCK(sc); | MWL_LOCK(sc); | ||||
error = mwl_ioctl_reset(sc,(struct mwl_diag *) ifr); | error = mwl_ioctl_reset(sc,(struct mwl_diag *) ifr); | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |