On 03/13/10 05:54 PM, Rick McNeal wrote:
Probe being called before attach is expected behavior.
True, I should have asked why is ddi_get_instance(dip) returning -1 on the 'sd'
driver? I guessing there's something that I've done or not done with my driver,
but what?
Does ddi_get_instance() return an expected value during
attach?
You normally call ddi_soft_state_init() in _init() and
ddi_soft_state_zalloc() during attach(). So, calling
ddi_get_soft_state(ddi_get_instance()) should be expected
to fail during probe (return NULL) but probably not as spectacularly as
it does for you when assertions are enabled.
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss