Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2002 16:36:51 -0400 (EDT)
From:      "Matthew N. Dodd" <winter@jurai.net>
To:        "M. Warner Losh" <imp@village.org>
Cc:        arch@FreeBSD.ORG
Subject:   Re: It is time to admit that removable devices exist
Message-ID:  <20020624163116.J95270-100000@sasami.jurai.net>
In-Reply-To: <20020623.171200.96231110.imp@village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 23 Jun 2002, M. Warner Losh wrote:
> Please find enclosed the beginnings of a patch to make removable devices
> better represented in the system.  Right now all it adds is a mechanism
> by which client drivers can ask if the device is still really there or
> not.

If a device driver is ever in a position to ask this question when a
device is not actually present then we've got larger issues.

I don't think this is the correct solution; adding function calls to all
the interrupt handlers is broken, especially since PCMCIA doesn't really
support hot removal of devices anyway.  No other OS supports this correctly
either.

I suggest that you implement a PCMCIA/CARDBUS specific BUS_SETUP_INTR
method that performs whatever check is needed before calling the driver
interrupt handler.

We should also implement 'ifconfig detach/unplumb/destroy' as an interface
for forcing network devices (the most common hot removed device) to be
detached.  This will allow users to completely detach the device before
they remove it.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| winter@jurai.net |       2 x '84 Volvo 245DL        | ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020624163116.J95270-100000>