亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? distnodelib.c

?? vxworks的源代碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
            distNodeNumNodesOperational--;            for (i = 0; i < DIST_NODE_MAX_HOOKS; i++)                {                if (distNodeCrashedHook[i] != NULL)                    (* (distNodeCrashedHook[i])) (distNodeId);                }            }        pNodeFound->nodeState = DIST_NODE_STATE_CRASHED;        }        DIST_NODE_DB_UNLOCK;        return (pNodeFound);    }/***************************************************************************** distNodeLocalGetId - returns the local node id (VxFusion option)** This routine returns the id of the local node.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: Local node ID.* NOMANUAL*/DIST_NODE_ID distNodeLocalGetId (void)    {    return (distNodeLocalId);    }/***************************************************************************** distNodeLocalSetId - sets the local node id (VxFusion option)** This routine sets the id of the local node.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: N/A* NOMANUAL*/void distNodeLocalSetId    (    DIST_NODE_ID    myNodeId    /* node ID */    )    {    distNodeLocalId = myNodeId;    }/***************************************************************************** distNodeLocalSetState - sets the state of the local node (VxFusion option)** This routine sets the state of the local node.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: N/A* NOMANUAL*/void distNodeLocalSetState    (    int    state    /* new state for local node */    )    {    distNodeLocalState = state;    }/***************************************************************************** distNodeLocalGetState - get state of the local node (VxFusion option)** This routine returns the state of the local node.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: Node state.* NOMANUAL*/int distNodeLocalGetState (void)    {    return (distNodeLocalState);    }/***************************************************************************** distNodeGetNumNodes - returns the number of nodes in a specified state (VxFusion option)** This routine returns the number of nodes currently in a specified state.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: Count of nodes, or -1 if <typeSet> is invalid.* NOMANUAL*/int distNodeGetNumNodes    (    int    typeSet   /* state to look for */    )    {    switch (typeSet)        {        case DIST_NODE_NUM_NODES_ALL:            return (distNodeNumNodesAll);        case DIST_NODE_NUM_NODES_ALIVE:            return (distNodeNumNodesAlive);        case DIST_NODE_NUM_NODES_OPERATIONAL:            return (distNodeNumNodesOperational);        default:            return (-1);        }    }/***************************************************************************** distNodeGetGodfatherId - get the id of our godfather (VxFusion option)** This routine returns the id of this node's godfather.* If no godfather is available, distNodeGetGodfatherId() returns ERROR,* else OK.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: OK, if godfather exists.* NOMANUAL*/STATUS distNodeGetGodfatherId    (    DIST_NODE_ID * nodeId  /* where to return godfather ID */    )    {    if ((*nodeId = distNodeGodfatherId) == DIST_IF_BROADCAST_ADDR)        return (ERROR);    return (OK);    }#ifdef UNDEFINED/* This routine does not seem to be used *//***************************************************************************** distNodeTouch - touch a node (increment message counter) (VxFusion option)** This routine touches a node.** NOTE: Must take <distNodeDbLock> before.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: OK, unless <distNodeId> is invalid.* NOMANUAL*/STATUS distNodeTouch    (    DIST_NODE_ID    distNodeId   /* ID of node to touch */    )    {    DIST_NODE_DB_NODE * pDistNodeFound;    if ((pDistNodeFound = distNodeFindById (distNodeId)) == NULL)        {        /*  Node does not exist. Should never happen. */        distStat.nodeDBNoMatch++;        return (ERROR);        }    DIST_NODE_IN_PKT_INC(pDistNodeFound);    return (OK);    }#endif/***************************************************************************** distNodeEach - call a routine for each node in the database (VxFusion option)** This routine calls a user-supplied routine once for each node.* The user-supplied routine should return TRUE if distNodeEach() is to* continue calling it with the remaining nodes, or FALSE if it is done and* distNodeEach() can exit.** distNodeEach() returns NULL if traversed whole database, or pointer to* node entry that distNodeEach() ended with.** NOTE: Takes <distNodeDbLock>.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: Pointer to last node visited.* NOMANUAL*/DIST_NODE_DB_NODE * distNodeEach    (    FUNCPTR    routine,      /* function to call at each node */    int        routineArg    /* argument to function */    )    {    DIST_NODE_DB_NODE * lastNode;    distNodeDbLock ();    lastNode = (DIST_NODE_DB_NODE *) hashTblEach (distNodeDbId,                                                  routine,                                                  routineArg);    distNodeDbUnlock ();    return (lastNode);    }/***************************************************************************** distNodeCleanup - Flush out all communication queues (VxFusion option)** This routine flushes all communication queues of <pNode>.  It is only* called from two places in distNodeReassemble() which takes the node* DB lock first.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: N/A* NOMANUAL*/LOCAL void distNodeCleanup    (    DIST_NODE_DB_NODE * pNode    /* node to clean-up */    )    {    DIST_TBUF_HDR *  pPkt;    DIST_NODE_COMM * pCommUnicast, *pCommBroadcast;    pCommUnicast = &pNode->nodeUnicast;    pCommBroadcast = &pNode->nodeBroadcast;    /*     * Clean up communication structures of bootstrapping     * node.     *     * Delete all unicast packets waiting for reassemly.     */    while (pCommUnicast->pCommQReass)        {        DIST_TBUF_HDR_DEQUEUE (pCommUnicast->pCommQReass, pPkt);        DIST_TBUF_FREEM (pPkt);        }    /*     * Dequeue all unicast packets waiting for a slide in     * the window. Wakeup sender.     */    while (pCommUnicast->pCommQWinOut)        {        DIST_TBUF_HDR_DEQUEUE (pCommUnicast->pCommQWinOut, pPkt);        pPkt->pTBufHdrTm->tmStatus = DIST_TM_STATUS_UNREACH;        semGive (&pPkt->pTBufHdrTm->tmWait4);        /* distNodePktSend() frees packet */        }    /*     * Dequeue all unicast packets waiting for an ACK.     * Wakeup sender.     */    while (pCommUnicast->pCommQAck)        {        DIST_TBUF_HDR_DEQUEUE (pCommUnicast->pCommQAck, pPkt);        pPkt->pTBufHdrTm->tmStatus = DIST_TM_STATUS_UNREACH;        semGive (&pPkt->pTBufHdrTm->tmWait4);        /* distNodePktSend() frees packet */        }        bzero ((char *) pCommUnicast->pCommCompleted,            DIST_NODE_BFLD_SIZEOF (DIST_IF_RNG_BUF_SZ));    pCommUnicast->commPktNextExpect = 0;    pCommUnicast->commAckNextExpect = 0;    pCommUnicast->commPktNextSend = 0;    pCommUnicast->commAckDelayed = FALSE;    /* Delete all broadcast packets waiting for reassembly. */    while (pCommBroadcast->pCommQReass)        {        DIST_TBUF_HDR_DEQUEUE (pCommBroadcast->pCommQReass, pPkt);        DIST_TBUF_FREEM (pPkt);        }        bzero ((char *) pCommBroadcast->pCommCompleted,            DIST_NODE_BFLD_SIZEOF (DIST_IF_RNG_BUF_SZ));    }/***************************************************************************** distNodeGetReassembled - get a reassembled packet (VxFusion option)** This routine gets a reassembled data packet.  It takes the node DB lock.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: Ptr to tbuf header.* NOMANUAL*/DIST_TBUF_HDR * distNodeGetReassembled    (    DIST_NODE_COMM * pComm  /* ptr to comm node */    )    {    DIST_TBUF_HDR *  pHead;         /* head of tbufs */    short            nextExpected;  /* next expected seq number */    DIST_TBUF_HDR *  pNext;         /* next tbuf */    distNodeDbLock ();        pHead = pComm->pCommQNextDeliver;    nextExpected = pComm->commPktNextExpect;    if (pHead && pHead->tBufHdrId == nextExpected &&            DIST_NODE_BTST (pComm->pCommCompleted, nextExpected))        {        /* Remove the packet from the reassembly queue. */        DIST_TBUF_HDR_UNLINK (pComm->pCommQReass, pHead);        if (nextExpected == (DIST_IF_RNG_BUF_SZ - 1))            pNext = pComm->pCommQReass;        else            pNext = pHead->pTBufHdrNext;        if (pNext && winAdd (nextExpected, 1) != pNext->tBufHdrId)            {            /* if a complete packet is missing, we fall in here */            pComm->pCommQNextDeliver = NULL;            }        else            {            /* next packet in ring is the one, we expect next */                        pComm->pCommQNextDeliver = pNext;            }        distNodeDbUnlock ();            /* UNLOCK */#ifdef DIST_NODE_REPORT        /* this is a hack */        printf ("distNodeGetReassembled: return %p (type %d/%d)\n", pHead,                *((char *) (DIST_TBUF_GET_NEXT (pHead)->pTBufData)),                *((char *) (DIST_TBUF_GET_NEXT (pHead)->pTBufData) + 1));#endif        return (pHead);        }    distNodeDbUnlock ();                /* UNLOCK */#ifdef DIST_NODE_REPORT    printf ("distNodeGetReassembled: no packet available\n");#endif    return (NULL);    }/***************************************************************************** distNodeReassemble - reassemble a packet (VxFusion option)** This routine takes a telegram and tries to reassemble it with other* fragments already stored in the reassembly list.* distNodeReassemble() updates the communication windows managed* within the database.** If <nodeIdSrc> is unknown by now, distNodeReassemble() creates a* new node in the node database. Creating a node is only allowed when* receiving a XACK telegram in bootstrap mode or a BOOTSTRAP telegram.** If a packet has been reassembled successfully, distNodeReassemble()* returns a pointer to the communication structure. Else a NULL pointer* is returned.** NOTE: Takes <distNodeDbLock>.** AVAILABILITY* This routine is distributed as a component of the unbundled distributed* message queues option, VxFusion.** RETURNS: Ptr to comm node.* NOMANUAL*/DIST_NODE_COMM * distNodeReassemble    (    DIST_NODE_ID nodeIdSrc,    /* source node */    int          prio,         /* priority */    DIST_TBUF *  pTBufNew      /* ptr to tbuf */    )    {    DIST_NODE_DB_NODE *   pNode;    DIST_NODE_DB_NODE *   pNodeSrc;    DIST_NODE_COMM *      pCommIn;    DIST_NODE_COMM *      pCommOut;    DIST_TBUF_HDR *       pReassHdr;    DIST_TBUF_HDR *       pReassHdrPrev;    DIST_TBUF_HDR *       pTBufAck;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷国产精品久久包臀 | 理论片日本一区| 欧美一区二区观看视频| 美女视频黄a大片欧美| 久久看人人爽人人| www.亚洲在线| 亚洲黄网站在线观看| 91麻豆精品国产| 国产精品综合久久| 国产精品高潮呻吟久久| 欧美午夜寂寞影院| 蜜桃久久久久久| 欧美国产欧美综合| 色哟哟日韩精品| 免费观看一级特黄欧美大片| 久久久av毛片精品| 一本色道久久综合亚洲aⅴ蜜桃 | 亚洲精品久久久蜜桃| 欧美精品少妇一区二区三区| 韩国v欧美v日本v亚洲v| 亚洲人一二三区| 91精品国产欧美一区二区| 国产成人亚洲综合a∨婷婷图片| 亚洲免费在线观看| 欧美一三区三区四区免费在线看| 国产一区二区在线看| 亚洲欧美日韩国产另类专区| 欧美一区二区三区日韩视频| 成人综合在线观看| 午夜视频在线观看一区二区三区| 久久精品在这里| 欧美午夜精品一区二区三区| 国产一区二区在线影院| 一区二区久久久久久| 日韩精品一区二区三区视频播放| 成人h精品动漫一区二区三区| 性感美女极品91精品| 亚洲国产经典视频| 91精品久久久久久蜜臀| 顶级嫩模精品视频在线看| 亚洲国产综合人成综合网站| 欧美成人女星排名| 色菇凉天天综合网| 国产乱人伦偷精品视频免下载| 亚洲美腿欧美偷拍| 久久精子c满五个校花| 欧美日本在线视频| 99视频一区二区| 精品一区二区精品| 亚洲一区二区三区国产| 欧美激情在线观看视频免费| 欧美一区二区在线观看| 94-欧美-setu| 国产精品一区在线观看乱码| 日日夜夜免费精品视频| 中文字幕在线观看一区二区| 欧美v日韩v国产v| 欧美日韩精品一区二区三区蜜桃 | 国产精品自在欧美一区| 三级不卡在线观看| 亚洲色欲色欲www在线观看| 欧美mv和日韩mv国产网站| 精品视频1区2区| 99热99精品| 国产精品一级二级三级| 午夜亚洲国产au精品一区二区| 国产精品二区一区二区aⅴ污介绍| www久久精品| 制服丝袜av成人在线看| 91丨九色porny丨蝌蚪| 国产福利一区二区三区| 裸体一区二区三区| 亚洲线精品一区二区三区| 中文字幕一区二区在线播放 | 久久日韩精品一区二区五区| 欧美日本在线视频| 91传媒视频在线播放| 成人h动漫精品一区二| 国产精品亚洲综合一区在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲国产视频在线| 亚洲精品一二三四区| 中文字幕一区二区三区在线不卡| 国产欧美日韩久久| 久久午夜免费电影| 欧美成人一区二区三区片免费 | 久久er99精品| 奇米影视在线99精品| 日日夜夜免费精品| 亚洲第一综合色| 亚洲女同ⅹxx女同tv| 亚洲欧洲一区二区在线播放| 国产人妖乱国产精品人妖| 欧美精品一区二| 精品区一区二区| 日韩免费视频一区| 日韩精品一区二区三区视频播放| 91精品在线观看入口| 91精品在线麻豆| 欧美一级理论性理论a| 日韩一级免费一区| 欧美一级视频精品观看| 日韩欧美色电影| 欧美va在线播放| 久久影视一区二区| 久久中文娱乐网| 久久亚洲一级片| 国产欧美日韩不卡| 国产精品免费免费| 国产精品久久久久久亚洲伦 | 日韩中文字幕区一区有砖一区| 一区二区三区在线视频播放| 一区二区三区免费看视频| 亚洲激情图片一区| 亚洲综合成人在线视频| 亚洲第一久久影院| 日本三级亚洲精品| 黄色精品一二区| 国产成人夜色高潮福利影视| 波多野结衣在线aⅴ中文字幕不卡| 成人午夜在线免费| 一本到一区二区三区| 色999日韩国产欧美一区二区| 欧洲av在线精品| 欧美精选午夜久久久乱码6080| 91精品啪在线观看国产60岁| 精品国产一区二区亚洲人成毛片 | 久久精品国产免费| 国产精品一区在线观看你懂的| 国产999精品久久| 一本一本大道香蕉久在线精品| 欧美日韩精品专区| 欧美岛国在线观看| 中文字幕欧美日本乱码一线二线 | 久久精品国产一区二区| 国产夫妻精品视频| 91在线丨porny丨国产| 欧美日韩一区三区| 精品国产乱码久久久久久浪潮 | 久久久www成人免费毛片麻豆| 中文字幕一区二区视频| 午夜久久久影院| 久久99在线观看| 成人av电影在线观看| 欧美制服丝袜第一页| 欧美一二三四区在线| 久久久久高清精品| 日韩一区在线免费观看| 水蜜桃久久夜色精品一区的特点| 黄色资源网久久资源365| 本田岬高潮一区二区三区| 欧美挠脚心视频网站| 久久免费国产精品| 亚洲免费观看高清完整版在线| 日韩精品福利网| 成人涩涩免费视频| 欧美日韩国产免费| 国产人成一区二区三区影院| 夜夜嗨av一区二区三区中文字幕| 久久99精品一区二区三区| 色综合久久88色综合天天6| 精品少妇一区二区三区日产乱码 | 精品视频在线视频| 久久这里只有精品首页| 亚洲综合在线免费观看| 精品一区二区久久久| 91久久香蕉国产日韩欧美9色| 日韩欧美亚洲一区二区| 亚洲色图都市小说| 精品一区二区国语对白| 欧美伊人精品成人久久综合97| 久久婷婷综合激情| 依依成人精品视频| 国产一区啦啦啦在线观看| 欧美综合一区二区三区| 精品福利在线导航| 一区二区三区欧美| 国产剧情一区二区| 欧美日韩国产高清一区二区三区| 国产人久久人人人人爽| 日韩av中文字幕一区二区三区 | 在线看日韩精品电影| 久久久久久麻豆| 视频一区视频二区中文| 91在线播放网址| 久久久久久久av麻豆果冻| 日韩成人一区二区| 色综合天天综合狠狠| 国产免费久久精品| 免费高清在线一区| 欧美视频一区二区| 国产精品久久久久影院老司| 久久机这里只有精品| 欧美日韩精品一区二区天天拍小说| 国产精品久久99| 国产一区二区三区在线观看免费视频 | 成人黄页毛片网站| 久久综合色天天久久综合图片| 午夜在线电影亚洲一区| 91在线观看地址|