cvs commit: src/sys/dev/lnc if_lnc.c

M. Warner Losh imp at bsdimp.com
Wed Jul 23 16:44:08 PDT 2003


In message: <XFMail.20030723135643.jhb at FreeBSD.org>
            John Baldwin <jhb at 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



More information about the cvs-src mailing list