summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_pcnreg.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-08-05 16:03:16 +0000
committerjhb <jhb@FreeBSD.org>2005-08-05 16:03:16 +0000
commit6d09ea8400a72acbe24a4cb92fa324700f2fee17 (patch)
tree48c83e626929e42f3b6a6a7988ed4366fe36d7db /sys/pci/if_pcnreg.h
parent7ca2fcbae65e2fa60eb83dbb51e15d83b4ca6e33 (diff)
downloadFreeBSD-src-6d09ea8400a72acbe24a4cb92fa324700f2fee17.zip
FreeBSD-src-6d09ea8400a72acbe24a4cb92fa324700f2fee17.tar.gz
Fix up the locking in pcn(4) and mark it MPSAFE.
- Add locked versions of the init() and start() methods. - Use callout_*() rather than timeout(). - Make the driver lock non-recursive. - Push down locking in detach() and ioctl(). - Fix the tick routine to bail if the interface has been stopped and use callout_drain() in detach() after the call to stop(). - Lock the driver lock in the ifmedia handlers. Tested by: Ketrien I. Saihr-Kesenchedra ketrien at error404.nls.net MFC after: 1 week
Diffstat (limited to 'sys/pci/if_pcnreg.h')
-rw-r--r--sys/pci/if_pcnreg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_pcnreg.h b/sys/pci/if_pcnreg.h
index 2294854..84e4a3f 100644
--- a/sys/pci/if_pcnreg.h
+++ b/sys/pci/if_pcnreg.h
@@ -465,7 +465,7 @@ struct pcn_softc {
int pcn_type;
struct pcn_list_data *pcn_ldata;
struct pcn_ring_data pcn_cdata;
- struct callout_handle pcn_stat_ch;
+ struct callout pcn_stat_callout;
struct mtx pcn_mtx;
};
OpenPOWER on IntegriCloud