cvs commit: src/sys/dev/fxp if_fxp.c if_fxpvar.h

Harti Brandt brandt at fokus.fraunhofer.de
Wed Apr 30 00:43:41 PDT 2003


On Tue, 29 Apr 2003, M. Warner Losh wrote:

MWL>In message: <Pine.BSF.4.21.0304291101001.75697-100000 at root.org>

MWL>: >           4) Return immediately if gone is true in fxp_ioctl
MWL>: >           5) Return immediately if gone is true in fxp_intr
MWL>:
MWL>: Not sure this approach is necessary.
MWL>
MWL>I am.  Otherwise ioctl panics with recursive locks when the card is
MWL>detached.  A simple kld_unload if_fxp would provoke these races,
MWL>including the recursive lock panic.

You can replace the pointers to ioctl and start with pointers to dummy
functions. In fact, an if_dead(ifp) function which does just this would
be nice to have.

harti
-- 
harti brandt,
http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private
brandt at fokus.fraunhofer.de, harti at freebsd.org


More information about the cvs-src mailing list