Thanks Jg, Driver removal is successful. Driver_detach is called for all the devices and then _fini.
I tried to add the alias for the second driver after adding the first driver. # update_drv -a -i '"xxxx,xxxx"' mod_name I see an error message saying the alias already exists " already in use as a driver or alias." If I remove the driver and then use this command, it says "driver not installed". But it adds an entry to the driver_aliases. This entry is not deleted by the rem_drv command. Am I doing something wrong? 1. how does the devfsadm calls the attach for each device, if we provide the device_id in add_drv command (add_drv -i ....)? 2. How does it know the device instance numbers for each attaching device? I have read that the /etc/path_to_inst keeps this record for the next boot and is read only at the boot time. Who gives this info if we use add_drv/update_drv? Thanks, MK. -----Original Message----- From: Jerry Gilliam [mailto:[email protected]] Sent: Friday, May 06, 2011 10:39 PM To: Kumar, Manish Cc: [email protected] Subject: Re: Fwd: [install-discuss] Can we have two drivers for the same device? > 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
