Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jul 2003 17:43:42 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        jhb@FreeBSD.org
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/lnc if_lnc.c
Message-ID:  <20030723.174342.72711741.imp@bsdimp.com>
In-Reply-To: <XFMail.20030723135643.jhb@FreeBSD.org>
References:  <20030722.164223.00776481.imp@bsdimp.com> <XFMail.20030723135643.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <XFMail.20030723135643.jhb@FreeBSD.org>
            John Baldwin <jhb@FreeBSD.org> writes:
: Umm, you should be having to unload if_wi then when unloading pccard.

No you should not.  it is a big pain in the ass, and completely
unnecessary.

: If if_wi tries to call a pccard method on an attached pccard device
: after pccard is unloaded, I'm sure lots of things are going to break.

it can't do that.  When pccard detaches, it detaches its children.
with nothing there to reattach the devices to pccard.

: Hmmm.  I guess if unloading pccard detaches all pccard devices and their
: children then it is safe if you always use KOBJ methods and never link
: against any functions for your bus attachments.

That's why pccard tries very hard to refuse to export ANY symbols that
pccard client drivers use.  Other busses should do likewise.

warner



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