cvs commit: src/sys/pci if_vr.c if_vrreg.h
jhb at FreeBSD.org
Tue Nov 8 08:05:57 PST 2005
jhb 2005-11-08 16:05:56 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sys/pci if_vr.c if_vrreg.h
- Use if_printf() and device_printf() and remove vr_unit from the softc.
I had to initialize the ifnet a bit earlier in attach so that the
if_printf()'s in vr_reset() didn't explode with a page fault.
- Use M_ZERO with contigmalloc() rather than an explicit bzero.
- Use callout_*() to manage the callout and make it MPSAFE.
- Fix locking in detach(), we only need to lock across vr_stop().
Revision Changes Path
18.104.22.168 +54 -67 src/sys/pci/if_vr.c
22.214.171.124 +1 -2 src/sys/pci/if_vrreg.h
More information about the cvs-all