hotplug remove vs. device driver close

linas at linas at
Fri Jun 4 05:39:39 EST 2004

On Thu, Jun 03, 2004 at 12:23:04PM -0700, Don Fry wrote:
> The pcnet32 driver tries to do the 'right thing' when it reads 0xffff,
> but that does not include doing a 'close' prior to being removed.  The
> driver could keep some state around so that if its remove routine was
> called without close first, it would cleanup, but I don't know of any
> network driver that does this.

What I get out of this thread is that pcnet32, and in fact, all drivers,
should keep sufficient state around so that close() can be called either
after or before remove().


** Sent via the linuxppc64-dev mail list. See

More information about the Linuxppc64-dev mailing list