Joachim Worringen wrote:
> Joachim Worringen wrote:
>   
>> - however, D detaches after some time (the kernel seems to trigger this, 
>> not D itself!), and if S calls D's functions now, it gets results 
>> indicating "now hardware found" (internal state of D when not being 
>>     
>                ^^^
> should read   "no hardware found"
>
>   Joachim
>
>   

The link dependency rule does nothing to cause the driver to attach, or 
stay attached.

To address that concern, there are at least three different approaches:

1) use a layered driver open (see ldi_open_xxx) and keep D's /dev entry 
open from A while in use.

2) use a ddi-forceattach and ddi-no-autodetach properties in D's 
driver.conf file.

3) change the dependency of A to D to be expressed in terms of 
nexus/leaf driver (e.g. SCSI HBA and disk).  This probably requires 
using private nexus driver interfaces, and may be more complicated than 
it is worth, especially if the relationship doesn't logically map to the 
child/parent paradigm.

Either approach will work.
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to