There are still some problems to retrieve the wwn(port-wwn,node-wwn) of device  
in XXX_attch or XXX_info entry point by call ddi_prop_op 
 
example as :
ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN_AND_VAL_ALLOC,
            DDI_PROP_DONTPASS, "wwn", (caddr_t)&propval, &proplen)
,
ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN_AND_VAL_ALLOC,
            DDI_PROP_DONTPASS, "port-wwn", (caddr_t)&propval, &proplen)
or
ddi_prop_op(DDI_DEV_T_ANY, dip, PROP_LEN_AND_VAL_ALLOC,
            DDI_PROP_DONTPASS, "port-wwn", (caddr_t)&propval, &proplen)


my purpose  which like vchi  is to get physical path and replace by my own 
logic path. 
now ,i face the above problem to get the wwn(port or node wwn) of lun  . How 
vchi  implement it .

I hope your help, thank you
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to