void Port::dump(const char *descr) { if (mPort == MACH_PORT_NULL) { Debug::dump("[%s==NULL]\n", descr ? descr : "port"); } else { Debug::dump("[%s(%d)", descr ? descr : "port", mPort); mach_port_type_t type; if (kern_return_t err = mach_port_type(self(), mPort, &type)) { Debug::dump(" !%s", mach_error_string(err)); } else { if (type & MACH_PORT_TYPE_SEND) Debug::dump(" send(%d)", getRefs(MACH_PORT_RIGHT_SEND)); if (type & MACH_PORT_TYPE_RECEIVE) Debug::dump(" rcv"); if (type & MACH_PORT_TYPE_SEND_ONCE) Debug::dump(" once(%d)", getRefs(MACH_PORT_RIGHT_SEND)); if (type & MACH_PORT_TYPE_PORT_SET) Debug::dump(" set"); if (type & MACH_PORT_TYPE_DEAD_NAME) Debug::dump(" dead(%d)", getRefs(MACH_PORT_RIGHT_SEND)); if (type & MACH_PORT_TYPE_DNREQUEST) Debug::dump(" dnreq"); // handle unknown/unexpected type flags if (type & ~(MACH_PORT_TYPE_SEND|MACH_PORT_TYPE_RECEIVE|MACH_PORT_TYPE_SEND_ONCE| MACH_PORT_TYPE_PORT_SET|MACH_PORT_TYPE_DEAD_NAME|MACH_PORT_TYPE_DNREQUEST)) Debug::dump(" type(0x%x)", type); } Debug::dump("]\n"); } }
CMPIStatus InternalProviderReferenceNames(CMPIAssociationMI * mi, const CMPIContext *ctx, const CMPIResult *rslt, const CMPIObjectPath * cop, const char *assocClass, const char *role) { CMPIStatus st; _SFCB_ENTER(TRACE_INTERNALPROVIDER, "InternalProviderReferenceNames"); st = getRefs(ctx, rslt, cop, assocClass, NULL, role, NULL, NULL, REF_NAME); _SFCB_RETURN(st); }
CMPIStatus InternalProviderAssociators(CMPIAssociationMI * mi, const CMPIContext *ctx, const CMPIResult *rslt, const CMPIObjectPath * cop, const char *assocClass, const char *resultClass, const char *role, const char *resultRole, const char **propertyList) { CMPIStatus st; _SFCB_ENTER(TRACE_INTERNALPROVIDER, "InternalProviderAssociators"); st = getRefs(ctx, rslt, cop, assocClass, resultClass, role, resultRole, propertyList, ASSOC); _SFCB_RETURN(st); }