> > I'm trying to debug something with a GLDv3 network driver.
> > How can I do the equivalent of ddi_get_driver_private()
> > from inside mdb?
> > 
> > Alternatively, how can I get it via the GLDv3 attachment
> > (eg, macp->m_driver).
> > 
> > I guess what I'm really asking is how to walk the macps,
> > and/or walk the dips, looking for some way to get at
> > my driver's data structs.
> 
> Does this do what you want?
> 
> ::walk mac_impl_cache | ::print mac_impl_t mi_driver
> 

Or you can do

::prtconf ! grep <driver>
and then get the devi_driver_data from the dev_info

e.g., 

> ::prtconf ! grep bge
        c8ec5470 pci108e,16a8, instance #0 (driver name: bge)
>  c8ec5470::print struct dev_info devi_driver_data 
devi_driver_data = 0xcaab5000

_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to