Commit 5a6b7d20 authored by Claes Sjofors's avatar Claes Sjofors

IO init, IO Status also searched for in parent object to connected module

parent e43efec2
......@@ -206,7 +206,21 @@ int io_connect_status( pwr_sAttrRef *sig_aref, pwr_sAttrRef *chan_aref)
strcat( sname, ".Status");
sts = gdh_NameToAttrref( pwr_cNObjid, sname, &status_aref);
if ( EVEN(sts)) {
/* Try parent object */
pwr_tOid parent;
sts = gdh_GetParent( card_aref.Objid, &parent);
if ( EVEN(sts)) return 0;
sts = gdh_ObjidToName( parent, sname, sizeof(sname),
cdh_mName_volumeStrict);
if ( EVEN(sts)) return 0;
strcat( sname, ".Status");
sts = gdh_NameToAttrref( pwr_cNObjid, sname, &status_aref);
if ( EVEN(sts)) return 0;
}
}
/* Store status pointer in IoStatus */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment