I was writing a scsi RAID hba driver.and I refered to offical doc "Writing_Device_Driver" .I almost finished it . after have tested my drivers,I found that, hot pluged disks could be found by the command "format" while the driver is already loaded, but unplug maybe not supported,when I power off the disks and type "format",all disks is still there,but their status become unknown.in my driver, when disk is failed, and os send me a read/write command, I have to timeout this command,because I don't konw how to nofity system the configuration has chanaged.I look through the file "write device driver" and " DDI and DKI Kernel funtions",find nothing helpfull. In "write device driver" there is a concept "Dynamic Reconiguration",this is about hot plug and unplug.the doc didn't tell me much, I see three function: int(*tran_quiesce)(dev_info_t*hba-dip); int(*tran_unquiesce)(dev_info_t*hba-dip); int(*tran_bus_reset)(dev_info_t*hba-dip,int level); BUT these functions are called when a user initiate squiesce and unquiesce operations, that is not what I need. I just need a function or such a mechanism to told system the configuration has changed(e,g,some disk failed), this don't need to have user be involved.
could somebody tell me the answer? or give me some advice, thanks in advance. -- This message posted from opensolaris.org _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
