>> I ran some experiments on whitestar2-5... ifconfig bge1 unplumb leaves >> leave the driver instance in attached state. DTrace shows calls to >> mac_close() and mac_prop_unload(), but no bge_detach() or mac_unregister(). > > That's correct. This is why in my earlier brute-force version, > I was doing property cleanup/restore in mac_stop/mac_start (the detach > is controlled by the DDI framework). But I thought that your changes > also took care of this by doing the mac_prop_fini, and creating the > mac prop if needed in mac_start?
Yes, bge allocates and then releases its property handle during attach. But in any case, I don't see how that's related to the problem in hand. Property handles are managed completely separately from everything else - separate hash, separate access functions. It is not in the way of Nemo framework in terms of attaching/detaching or stopping/starting driver instances. -Artem
