static void wake(const EOnv* nv) { eOprotID32_t id32 = 0; eOprotProgNumber_t prognum = 0 ; void *mchandler = (void*) feat_MC_handler_get(eo_nv_GetIP(nv), eo_nv_GetID32(nv)); if(NULL == mchandler) { printf("eoMC class not found\n"); return; } id32 = eo_nv_GetID32(nv); prognum = eoprot_endpoint_id2prognum(eo_nv_GetBRD(nv), id32); if(eobool_false == feat_MC_mutex_post(mchandler, prognum) ) { char nvinfo[128]; char ipinfo[20]; char str[256] = {0}; eoprot_ID2information(id32, nvinfo, sizeof(nvinfo)); eo_common_ipv4addr_to_string(eo_nv_GetIP(nv), ipinfo, sizeof(ipinfo)); snprintf(str, sizeof(str),"while releasing mutex for IP %s and NV %s", ipinfo, nvinfo); feat_PrintWarning(str); } }
static void wake(const EOnv* nv) { eOprotID32_t id32 = 0; eOprotProgNumber_t prognum = 0 ; void *mchandler = (void*) feat_MC_handler_get(nvBoardNum2FeatIdBoardNum(eo_nv_GetBRD(nv)), eo_nv_GetID32(nv)); if(NULL == mchandler) { printf("eoMC class not found\n"); return; } id32 = eo_nv_GetID32(nv); prognum = eoprot_endpoint_id2prognum(eo_nv_GetBRD(nv), id32); if(fakestdbool_false == feat_MC_mutex_post(mchandler, prognum) ) { char nvinfo[128]; char str[256] = {0}; eoprot_ID2information(id32, nvinfo, sizeof(nvinfo)); snprintf(str, sizeof(str),"while releasing mutex in BOARD %d for variable %s", eo_nv_GetBRD(nv)+1, nvinfo); embObjPrintWarning(str); } }