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

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

?? ixethdbmem.c

?? u-boot1.3.0的原碼,從配了網(wǎng)絡(luò)驅(qū)動(dòng)和FLASH的驅(qū)動(dòng),并該用ESC竟如
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
/** * @file IxEthDBDBMem.c * * @brief Memory handling routines for the MAC address database *  * @par * IXP400 SW Release version 2.0 *  * -- Copyright Notice -- *  * @par * Copyright 2001-2005, Intel Corporation. * All rights reserved. *  * @par * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the Intel Corporation nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. *  * @par * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  * @par * -- End of Copyright Notice -- */#include "IxEthDB_p.h"IX_ETH_DB_PRIVATE HashNode *nodePool     = NULL;IX_ETH_DB_PRIVATE MacDescriptor *macPool = NULL;IX_ETH_DB_PRIVATE MacTreeNode *treePool  = NULL;IX_ETH_DB_PRIVATE HashNode nodePoolArea[NODE_POOL_SIZE];IX_ETH_DB_PRIVATE MacDescriptor macPoolArea[MAC_POOL_SIZE];IX_ETH_DB_PRIVATE MacTreeNode treePoolArea[TREE_POOL_SIZE];IX_ETH_DB_PRIVATE IxOsalMutex nodePoolLock;IX_ETH_DB_PRIVATE IxOsalMutex macPoolLock;IX_ETH_DB_PRIVATE IxOsalMutex treePoolLock;#define LOCK_NODE_POOL   { ixOsalMutexLock(&nodePoolLock, IX_OSAL_WAIT_FOREVER); }#define UNLOCK_NODE_POOL { ixOsalMutexUnlock(&nodePoolLock); }#define LOCK_MAC_POOL    { ixOsalMutexLock(&macPoolLock, IX_OSAL_WAIT_FOREVER); }#define UNLOCK_MAC_POOL  { ixOsalMutexUnlock(&macPoolLock); }#define LOCK_TREE_POOL   { ixOsalMutexLock(&treePoolLock, IX_OSAL_WAIT_FOREVER); }#define UNLOCK_TREE_POOL { ixOsalMutexUnlock(&treePoolLock); }/* private function prototypes */IX_ETH_DB_PRIVATE MacDescriptor* ixEthDBPoolAllocMacDescriptor(void);IX_ETH_DB_PRIVATE void ixEthDBPoolFreeMacDescriptor(MacDescriptor *macDescriptor);/** * @addtogroup EthMemoryManagement * * @{ *//** * @brief initializes the memory pools used by the ethernet database component * * Initializes the hash table node, mac descriptor and mac tree node pools. * Called at initialization time by @ref ixEthDBInit(). * * @internal */IX_ETH_DB_PUBLICvoid ixEthDBInitMemoryPools(void){    int local_index;    /* HashNode pool */    ixOsalMutexInit(&nodePoolLock);    for (local_index = 0 ; local_index < NODE_POOL_SIZE ; local_index++)    {        HashNode *freeNode = &nodePoolArea[local_index];        freeNode->nextFree = nodePool;        nodePool           = freeNode;    }    /* MacDescriptor pool */    ixOsalMutexInit(&macPoolLock);    for (local_index = 0 ; local_index < MAC_POOL_SIZE ; local_index++)    {        MacDescriptor *freeDescriptor = &macPoolArea[local_index];        freeDescriptor->nextFree = macPool;        macPool                  = freeDescriptor;    }    /* MacTreeNode pool */    ixOsalMutexInit(&treePoolLock);    for (local_index = 0 ; local_index < TREE_POOL_SIZE ; local_index++)    {        MacTreeNode *freeNode = &treePoolArea[local_index];        freeNode->nextFree = treePool;        treePool           = freeNode;    }}/** * @brief allocates a hash node from the pool * * Allocates a hash node and resets its value. * * @return the allocated hash node or NULL if the pool is empty * * @internal */IX_ETH_DB_PUBLICHashNode* ixEthDBAllocHashNode(void){    HashNode *allocatedNode = NULL;    if (nodePool != NULL)    {        LOCK_NODE_POOL;        allocatedNode = nodePool;        nodePool      = nodePool->nextFree;        UNLOCK_NODE_POOL;        memset(allocatedNode, 0, sizeof(HashNode));    }    return allocatedNode;}/** * @brief frees a hash node into the pool * * @param hashNode node to be freed * * @internal */IX_ETH_DB_PUBLICvoid ixEthDBFreeHashNode(HashNode *hashNode){    if (hashNode != NULL)    {        LOCK_NODE_POOL;        hashNode->nextFree = nodePool;        nodePool           = hashNode;        UNLOCK_NODE_POOL;    }}/** * @brief allocates a mac descriptor from the pool * * Allocates a mac descriptor and resets its value. * This function is not used directly, instead @ref ixEthDBAllocMacDescriptor() * is used, which keeps track of the pointer reference count. * * @see ixEthDBAllocMacDescriptor() *  * @warning this function is not used directly by any other function * apart from ixEthDBAllocMacDescriptor() * * @return the allocated mac descriptor or NULL if the pool is empty * * @internal */IX_ETH_DB_PRIVATEMacDescriptor* ixEthDBPoolAllocMacDescriptor(void){    MacDescriptor *allocatedDescriptor = NULL;    if (macPool != NULL)    {        LOCK_MAC_POOL;        allocatedDescriptor = macPool;        macPool             = macPool->nextFree;        UNLOCK_MAC_POOL;        memset(allocatedDescriptor, 0, sizeof(MacDescriptor));    }    return allocatedDescriptor;}/** * @brief allocates and initializes a mac descriptor smart pointer * * Uses @ref ixEthDBPoolAllocMacDescriptor() to allocate a mac descriptor * from the pool and initializes its reference count. * * @see ixEthDBPoolAllocMacDescriptor() * * @return the allocated mac descriptor or NULL if the pool is empty * * @internal */IX_ETH_DB_PUBLICMacDescriptor* ixEthDBAllocMacDescriptor(void){    MacDescriptor *allocatedDescriptor = ixEthDBPoolAllocMacDescriptor();    if (allocatedDescriptor != NULL)    {        LOCK_MAC_POOL;        allocatedDescriptor->refCount++;        UNLOCK_MAC_POOL;    }    return allocatedDescriptor;}/** * @brief frees a mac descriptor back into the pool * * @param macDescriptor mac descriptor to be freed * * @warning this function is not to be called by anyone but * ixEthDBFreeMacDescriptor() * * @see ixEthDBFreeMacDescriptor() * * @internal */IX_ETH_DB_PRIVATEvoid ixEthDBPoolFreeMacDescriptor(MacDescriptor *macDescriptor){    LOCK_MAC_POOL;    macDescriptor->nextFree = macPool;    macPool                 = macDescriptor;    UNLOCK_MAC_POOL;}/** * @brief frees or reduces the usage count of a mac descriptor smart pointer * * If the reference count reaches 0 (structure is no longer used anywhere) * then the descriptor is freed back into the pool using ixEthDBPoolFreeMacDescriptor(). * * @see ixEthDBPoolFreeMacDescriptor() * * @internal */IX_ETH_DB_PUBLICvoid ixEthDBFreeMacDescriptor(MacDescriptor *macDescriptor){    if (macDescriptor != NULL)    {        LOCK_MAC_POOL;        if (macDescriptor->refCount > 0)        {            macDescriptor->refCount--;            if (macDescriptor->refCount == 0)            {                UNLOCK_MAC_POOL;                ixEthDBPoolFreeMacDescriptor(macDescriptor);            }            else            {                UNLOCK_MAC_POOL;            }        }        else        {            UNLOCK_MAC_POOL;        }    }}/** * @brief clones a mac descriptor smart pointer * * @param macDescriptor mac descriptor to clone * * Increments the usage count of the smart pointer * * @returns the cloned smart pointer * * @internal */IX_ETH_DB_PUBLICMacDescriptor* ixEthDBCloneMacDescriptor(MacDescriptor *macDescriptor){    LOCK_MAC_POOL;    if (macDescriptor->refCount == 0)    {        UNLOCK_MAC_POOL;        return NULL;    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91天堂素人约啪| 91亚洲精品久久久蜜桃网站| 国产精品久久久久一区| 91成人在线精品| 国产成人午夜精品5599| 婷婷夜色潮精品综合在线| 欧美极品xxx| 91麻豆精品国产自产在线观看一区 | 91麻豆免费视频| 久久99精品国产麻豆婷婷| 一区二区三区不卡视频在线观看| 日韩午夜激情电影| 91黄色小视频| 99天天综合性| 寂寞少妇一区二区三区| 亚洲国产另类av| 亚洲精品老司机| 国产精品卡一卡二卡三| 精品国产一区久久| 欧美剧情电影在线观看完整版免费励志电影 | 日韩免费视频一区| 精品视频一区 二区 三区| 97精品久久久久中文字幕| 国产精品一区二区果冻传媒| 久久99精品一区二区三区| 婷婷中文字幕综合| 午夜电影一区二区三区| 亚洲最大的成人av| 亚洲色图制服诱惑| 国产精品久久久久三级| 欧美激情综合网| 亚洲国产成人一区二区三区| 久久久久久久久蜜桃| 欧美不卡一区二区三区四区| 51精品国自产在线| 欧美一区二区在线播放| 欧美高清性hdvideosex| 欧美美女网站色| 精品视频在线免费| 欧美精品xxxxbbbb| 欧美一区二区精品在线| 日韩欧美国产麻豆| 欧美成人国产一区二区| 久久亚洲精精品中文字幕早川悠里 | 欧美日韩一区小说| 欧美专区日韩专区| 欧美日本一道本| 欧美一区二区大片| 欧美大胆一级视频| 久久这里只有精品6| 国产拍欧美日韩视频二区| 中文字幕久久午夜不卡| 综合中文字幕亚洲| 亚洲一区电影777| 日韩电影在线一区| 九色porny丨国产精品| 国产一区二区三区精品欧美日韩一区二区三区 | 国产色婷婷亚洲99精品小说| 国产精品无圣光一区二区| 国产精品久久久久国产精品日日| 国产精品不卡一区| 亚洲高清久久久| 精品一区二区三区视频在线观看| 国产suv精品一区二区883| 99久久夜色精品国产网站| 欧美三级中文字幕在线观看| 日韩美女一区二区三区四区| 日本一区二区视频在线| 亚洲精品精品亚洲| 日本va欧美va瓶| 国产成人精品一区二| 欧美亚洲一区二区在线| 日韩欧美一区在线观看| 欧美国产精品一区二区| 亚洲综合在线视频| 久久精品理论片| 99精品视频免费在线观看| 9191成人精品久久| 欧美国产丝袜视频| 亚洲成人动漫在线观看| 国产一区二区三区四区五区入口| 97精品超碰一区二区三区| 欧美一卡二卡三卡四卡| 国产精品免费看片| 五月天久久比比资源色| 成人涩涩免费视频| 欧美日韩不卡视频| 欧美国产欧美综合| 日韩制服丝袜av| 97久久精品人人澡人人爽| 精品国产一区二区三区久久影院 | 国产精品电影一区二区| 视频精品一区二区| a美女胸又www黄视频久久| 欧美一二三区在线观看| 中文字幕一区二区三区不卡在线| 日韩**一区毛片| 91猫先生在线| 欧美激情综合网| 麻豆精品视频在线| 欧美日韩一区三区| 国产精品久久久久久久久久免费看 | 国产精品一区二区你懂的| 欧美日韩亚洲综合在线| 国产精品免费观看视频| 精品一区二区三区蜜桃| 欧美人与性动xxxx| 亚洲精品国产高清久久伦理二区| 国产在线国偷精品产拍免费yy| 欧美系列日韩一区| 国产精品国产成人国产三级| 精东粉嫩av免费一区二区三区| 欧美羞羞免费网站| 自拍av一区二区三区| 国产91在线观看| 26uuu精品一区二区| 青青青伊人色综合久久| 欧美日韩一本到| 亚洲综合一二区| 99精品国产热久久91蜜凸| 国产女人aaa级久久久级| 国产在线视频一区二区三区| 日韩一区二区高清| 日韩精品电影一区亚洲| 欧美丰满美乳xxx高潮www| 樱花影视一区二区| 色综合欧美在线| 自拍偷拍亚洲欧美日韩| 成人毛片视频在线观看| 中文字幕欧美区| 成人在线综合网站| 亚洲国产高清在线| 波多野结衣中文字幕一区| 国产精品污网站| jvid福利写真一区二区三区| 国产精品毛片高清在线完整版| 国产精品亚洲第一区在线暖暖韩国 | 欧美在线不卡视频| 一区二区久久久久久| 91福利国产精品| 午夜精品国产更新| 欧美人xxxx| 麻豆极品一区二区三区| 精品国产伦一区二区三区观看方式 | 曰韩精品一区二区| 在线免费观看视频一区| 亚洲成人在线网站| 国产精品午夜免费| av在线一区二区| 亚洲激情男女视频| 欧美男生操女生| 免费欧美高清视频| 精品日韩欧美在线| 国产成人在线影院| 亚洲欧美日韩国产另类专区| 一本到不卡精品视频在线观看| 亚洲一区在线视频观看| 91精品国产全国免费观看| 激情另类小说区图片区视频区| 日本一区二区三区在线观看| 91在线视频免费观看| 婷婷国产v国产偷v亚洲高清| 精品国免费一区二区三区| 国产99久久久国产精品潘金 | 欧美在线视频日韩| 日韩高清一区二区| 国产欧美一区二区三区鸳鸯浴| av午夜一区麻豆| 五月综合激情婷婷六月色窝| 日韩精品一区二区三区三区免费| 国产成人亚洲精品狼色在线| 亚洲精品福利视频网站| 日韩三级视频中文字幕| 成人视屏免费看| 亚洲图片一区二区| 精品第一国产综合精品aⅴ| jvid福利写真一区二区三区| 午夜不卡av免费| 国产精品人人做人人爽人人添| 欧美伊人久久久久久午夜久久久久| 麻豆91精品视频| 国产精品免费久久久久| 7777精品伊人久久久大香线蕉的| 国产成人午夜电影网| 日韩黄色一级片| 国产精品天干天干在线综合| 欧美唯美清纯偷拍| 国产成人无遮挡在线视频| 亚洲成人自拍偷拍| 国产精品久久午夜夜伦鲁鲁| 欧美一区二区三区在线观看| 99久免费精品视频在线观看| 蜜臀久久久久久久| 国产成人av影院| 天堂蜜桃91精品| 18欧美乱大交hd1984| 26uuuu精品一区二区| 欧美精品一二三| 91麻豆高清视频| 国产成人精品1024|