I have two test drivers for the same device. If I install one driver using
add_drv, it installs fine and adds the binding info to /etc/driver_aliases.
Then I remove the driver using rem_drv, the driver and the binding info in the
driver_aliases is removed. Now if I try to install the second driver for the
same device, the system throws an error “failed to attach”.
1. Does OS maintain driver-device binding info at few more places?
2. How can I remove this info from all the places, so that I can add the second
driver without rebooting.
Thanks,
MK.
That should work, but does depend on the first instance detaching,
which of course depends on no active references to the device and
that the driver detach functions properly.
An easier way to do what you want though would be add both
drivers, but only with an alias for the first. When you want to
switch, dynamically remove the alias for the first and add the
alias for the second using update_drv(1m). This strategy
is used by virtual box to manage usb devices.
-jg
_______________________________________________
install-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/install-discuss