when i use ddi_prop_op to give wwn property of device ,there has a coredump .
 
there maybe some bug in the ddi_prop_search_common  which is called by 
ddi_prop_op ,

if property not exist in devi_drv_prop_ptr and evi_sys_prop_ptr is null


code is follow :

propp = i_ddi_prop_search(dev, name, flags,
                    &(DEVI(dip)->devi_drv_prop_ptr));
                if (propp == NULL)  {
                        propp = i_ddi_prop_search(dev, name, flags,
                            &(DEVI(dip)->devi_sys_prop_ptr));
                }
                if ((propp == NULL) && DEVI(dip)->devi_global_prop_list) {
                        propp = i_ddi_prop_search(dev, name, flags,
                            &DEVI(dip)->devi_global_prop_list->prop_list);
                }

                if (propp == NULL)  {
                        propp = i_ddi_prop_search(dev, name, flags,
                            &(DEVI(dip)->devi_hw_prop_ptr));
                }




Mabey there is some sequence required ,call you tell me how to get the wwn 
property of device 

thanks
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to