On Mon, 31 May 1999, Alan Cox wrote:

> If PCMCIA managed to remove a module for an active interface then it is
> broken. Fix the MOD_INC/DEC_USE_COUNT stuff for that module. An interface
> that is up is always 'in use'.

Given that (I'll check the driver in a sec), what's the correct way to
deal with this problem?  Should pcmcia-cs explicitly shut down the
interface before removing the card structures and modules?  Or should the
drivers in question force their own associated interfaces down as they are
being removed?  Or is it purely a kernel issue?

Obviously the pcmcia-cs solution is the quicker (not having to modify all
the drivers), but it may not be entirely portable (#ifdef it, I guess).

What I'm wondering is, what changed between 2.0 and 2.2 that caused this
behaviour change?  Given what I know of the networking code, the 2.2
behaviour is "correct" in the naive (non-PCMCIA) case, so what was it in
2.0 that made it work? 

TIA,
   Omega

         Erik Walthinsen <[EMAIL PROTECTED]> - Staff Programmer @ OGI
        Quasar project - http://www.cse.ogi.edu/DISC/projects/quasar/
   Video4Linux Two drivers and stuff - http://www.cse.ogi.edu/~omega/v4l2/
        __
       /  \             SEUL: Simple End-User Linux - http://www.seul.org/
      |    | M E G A           Helping Linux become THE choice
      _\  /_                          for the home or office user


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to