freebsd-src/sys/dev/an
Doug Ambrisko f0e1e8d9fb First real attempt at proper locking. The locking is a little complicated
since the the command and data that is being built to be sent to or read
from the HW lives in the softc.  Commands are later run via an_setdef etc.
In the ioctl path various references are kept to the data stored in
the softc so it needs to be protected.  Almost think of the command
in the softc a global variable since it essentially is.  Since locking
wasn't done in this type of context the commands would get corrupted.

Thanks to avatar@ for catching some lock issues and dhw@ for testing.

Things are a lot more stable except for the MPI-350 cards.  My an(4)
remote laptop stays on the network now.

The driver should be changed so that it uses private memory that is passed
to the functions that talk to the card.  Then only those functions would
really need to grab locks.

Reviewed by:	avatar@
2008-01-18 16:31:24 +00:00
..
if_aironet_ieee.h
if_an.c First real attempt at proper locking. The locking is a little complicated 2008-01-18 16:31:24 +00:00
if_an_isa.c o break newbus api: add a new argument of type driver_filter_t to 2007-02-23 12:19:07 +00:00
if_an_pccard.c o break newbus api: add a new argument of type driver_filter_t to 2007-02-23 12:19:07 +00:00
if_an_pci.c First real attempt at proper locking. The locking is a little complicated 2008-01-18 16:31:24 +00:00
if_anreg.h First real attempt at proper locking. The locking is a little complicated 2008-01-18 16:31:24 +00:00