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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? memlib.c

?? vxworks操作系統(tǒng)Intel體系結(jié)構(gòu)下內(nèi)核源代碼
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
	    		    partId, pBlock, 2* (pHdr->nWords), nBytes);#endif	    partId->curWordsAllocated += pNextHdr->nWords;	/* fix stats */	    partId->cumWordsAllocated += pNextHdr->nWords;	    NEXT_HDR (pHdr)->pPrevHdr = pHdr;			/* fix next */	    /* if this combined block is too big, it will get fixed below */	    }	}    /* split off any extra and give it back;     * note that this covers both the case of a realloc for smaller space     * and the case of a realloc for bigger space that caused a coalesce     * with the next block that resulted in larger than required block */    pNextHdr = memBlockSplit (pHdr, pHdr->nWords - nWords,			      partId->minBlockWords);    semGive (&partId->sem);    if (pNextHdr != NULL)	{	(void) memPartFree (partId, HDR_TO_BLOCK (pNextHdr));	partId->curBlocksAllocated++;	/* memPartFree() is going to subtract one from the curBlocksAllocated	 * statistic. Since memPartRealloc() should not change the value of	 * curBlocksAllocated, it has to be corrected  (SPR 1407 & 3564)	 */	}    return ((void *) pBlock);    }/********************************************************************************* memPartFindMax - find the size of the largest available free block** This routine searches for the largest block in the memory partition free* list and returns its size.** RETURNS: The size, in bytes, of the largest available block.** ERRNO: S_smObjLib_NOT_INITIALIZED** SEE ALSO: smMemLib*/int memPartFindMax     (    FAST PART_ID partId         /* partition ID */    )    {    FAST BLOCK_HDR *	pHdr;    FAST DL_NODE *	pNode;    FAST unsigned	biggestWords = 0;    if (ID_IS_SHARED (partId))  /* partition is shared? */	{	if (smMemPartFindMaxRtn == NULL)	    {	    errno = S_smObjLib_NOT_INITIALIZED;	    return (ERROR);	    }        return ((*smMemPartFindMaxRtn) (SM_OBJ_ID_TO_ADRS (partId)));	}    /* partition is local */    if (OBJ_VERIFY (partId, memPartClassId) != OK)	return (ERROR);    semTake (&partId->sem, WAIT_FOREVER);    /* go through free list and find largest free */    for (pNode = DLL_FIRST (&partId->freeList);	 pNode != NULL;	 pNode = DLL_NEXT (pNode))	{	pHdr = NODE_TO_HDR (pNode);	if (pHdr->nWords > biggestWords)	    biggestWords = pHdr->nWords;	}    semGive (&partId->sem);    return (2 * biggestWords - sizeof (BLOCK_HDR));    }/********************************************************************************* memPartAllocError - handle allocation error*/LOCAL void memPartAllocError     (    PART_ID pPart,    unsigned nBytes     )    {    if ((_func_logMsg != NULL) &&	(pPart->options & MEM_ALLOC_ERROR_LOG_FLAG))	(* _func_logMsg) (memMsgBlockTooBig, nBytes, (int) pPart, 0, 0, 0, 0);    }/********************************************************************************* memPartBlockError - handle invalid block error*/LOCAL void memPartBlockError     (    PART_ID pPart,    char *pBlock,    char *label     )    {    if ((_func_logMsg != NULL) &&        (pPart->options & MEM_BLOCK_ERROR_LOG_FLAG))        (* _func_logMsg) (memMsgBlockError, (int)label, (int) pBlock, 			  (int) pPart, 0, 0, 0);    }/******************************************************************************* memBlockSplit - split a block into two blocks** This routine splits the block pointed to into two blocks.  The second* block will have nWords words in it.  A pointer is returned to this block.* If either resultant block would end up having less than minWords in it,* NULL is returned.** RETURNS: A pointer to the second block, or NULL.*/LOCAL BLOCK_HDR *memBlockSplit     (    FAST BLOCK_HDR *pHdr,    unsigned nWords,            /* number of words in second block */    unsigned minWords           /* min num of words allowed in a block */    )    {    FAST unsigned wordsLeft;    FAST BLOCK_HDR *pNewHdr;    /* check if block can be split */    if ((nWords < minWords) ||        ((wordsLeft = (pHdr->nWords - nWords)) < minWords))        return (NULL);                  /* not enough space left */    /* adjust original block size and create new block */    pHdr->nWords = wordsLeft;    pNewHdr = NEXT_HDR (pHdr);    pNewHdr->pPrevHdr = pHdr;    pNewHdr->nWords   = nWords;    pNewHdr->free     = pHdr->free;    /* fix next block */    NEXT_HDR (pNewHdr)->pPrevHdr = pNewHdr;    return (pNewHdr);    }/********************************************************************************* memOptionsSet - set the debug options for the system memory partition** This routine sets the debug options for the system memory partition.* Two kinds of errors are detected:  attempts to allocate more memory than* is available, and bad blocks found when memory is freed.  In both cases,* the following options can be selected for actions to be taken when the error* is detected:  (1) return the error status, (2) log an error message and* return the error status, or (3) log an error message and suspend the* calling task.** These options are discussed in detail in the library manual* entry for memLib.** RETURNS: N/A** SEE ALSO: memPartOptionsSet()*/void memOptionsSet     (    unsigned options    /* options for system partition */    )    {    memPartOptionsSet (memSysPartId, options);    }/********************************************************************************* calloc - allocate space for an array (ANSI)** This routine allocates a block of memory for an array that contains* <elemNum> elements of size <elemSize>.  This space is initialized to* zeros.** RETURNS:* A pointer to the block, or NULL if the call fails.** SEE ALSO:* .I "American National Standard for Information Systems -"* .I "Programming Language - C, ANSI X3.159-1989: General Utilities (stdlib.h)"*/void *calloc     (    size_t elemNum,	/* number of elements */    size_t elemSize	/* size of elements */    )    {    FAST void *pMem;    FAST size_t nBytes = elemNum * elemSize;        if ((pMem = memPartAlloc (memSysPartId, (unsigned) nBytes)) != NULL)	bzero ((char *) pMem, (int) nBytes);    return (pMem);    }/********************************************************************************* realloc - reallocate a block of memory (ANSI)** This routine changes the size of a specified block of memory and returns a* pointer to the new block of memory.  The contents that fit inside the new* size (or old size if smaller) remain unchanged.  The memory alignment of* the new block is not guaranteed to be the same as the original block.** RETURNS:* A pointer to the new block of memory, or NULL if the call fails.** SEE ALSO:* .I "American National Standard for Information Systems -"* .I "Programming Language - C, ANSI X3.159-1989: General Utilities (stdlib.h)"*/void *realloc     (    void *pBlock,	/* block to reallocate */    size_t newSize	/* new block size */    )    {        return (memPartRealloc (memSysPartId, (char *) pBlock, 				(unsigned) newSize));    }/********************************************************************************* cfree - free a block of memory** This routine returns to the free memory pool a block of memory * previously allocated with calloc().** It is an error to free a memory block that was not previously allocated.** RETURNS: OK, or ERROR if the the block is invalid.*/STATUS cfree     (    char *pBlock        /* pointer to block of memory to free */    )    {    return (memPartFree (memSysPartId, pBlock));    }/********************************************************************************* memFindMax - find the largest free block in the system memory partition** This routine searches for the largest block in the system memory partition* free list and returns its size.** RETURNS: The size, in bytes, of the largest available block.** SEE ALSO: memPartFindMax()*/int memFindMax (void)    {    return (memPartFindMax (memSysPartId));    }/********************************************************************************* memSemInit - initialize the partition semaphore as type mutex** This routine initializes the partition semaphore as a mutex semaphore with* the mutex options stored in mutexOptionsMemLib.  This function is called* indirectly from memPartInit ().  This coupling allows alternative semaphore* types to serve as the basis for memory partition interlocking.*/LOCAL void memSemInit    (    PART_ID partId		/* partition to initialize semaphore for */    )    {    semMInit (&partId->sem, mutexOptionsMemLib);    }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品美女久久福利网站| 成人性生交大片免费看在线播放| 亚洲国产欧美日韩另类综合| 午夜一区二区三区在线观看| 婷婷久久综合九色综合绿巨人| 午夜激情久久久| 国产精品一区在线观看你懂的| 成人h动漫精品一区二区| 欧美综合视频在线观看| 精品日本一线二线三线不卡| 国产精品国产三级国产专播品爱网 | 九色|91porny| 日韩欧美资源站| 成人免费毛片片v| 欧美成人在线直播| 精品在线亚洲视频| 91国模大尺度私拍在线视频| 在线视频亚洲一区| 91麻豆精品国产无毒不卡在线观看| 免费看欧美美女黄的网站| 国产精品久久一级| 欧美在线观看禁18| 国产99久久久精品| 午夜精品久久一牛影视| 国产亚洲婷婷免费| 欧美喷水一区二区| 99精品国产热久久91蜜凸| 日韩av高清在线观看| 国产成人免费xxxxxxxx| 91.麻豆视频| 亚洲国产精品精华液网站| 成人福利视频在线看| 日韩精品一区在线| 日韩精品每日更新| 欧美精品第1页| 三级欧美韩日大片在线看| 欧美日韩美女一区二区| 亚洲国产一二三| 欧美亚洲国产一卡| 性做久久久久久免费观看欧美| 97精品电影院| 亚洲国产精品一区二区www在线 | 国产精品久久99| 高清av一区二区| 亚洲欧洲精品天堂一级| 91丝袜美女网| 久久精品国产99| 国产精品久线在线观看| 色偷偷久久一区二区三区| 亚洲成人激情av| 精品久久人人做人人爰| 不卡在线观看av| 日本欧美一区二区| 国产精品国产三级国产普通话三级 | av高清久久久| 日韩一区欧美二区| 亚洲综合免费观看高清在线观看| 国产在线精品一区二区三区不卡| 亚洲一区二区三区四区的| 国产免费成人在线视频| 中文字幕二三区不卡| 欧美韩国日本综合| 亚洲手机成人高清视频| 亚洲欧美在线视频| 亚洲人一二三区| 亚洲国产精品久久不卡毛片| 五月激情丁香一区二区三区| 日韩国产精品久久久久久亚洲| 青青草91视频| 黑人巨大精品欧美一区| 国产真实乱对白精彩久久| 国内精品久久久久影院薰衣草| 激情av综合网| 91麻豆国产自产在线观看| 91成人在线免费观看| 欧美日韩二区三区| 中文字幕免费不卡| 亚洲第一精品在线| 国产一区在线视频| 欧美私人免费视频| 欧美韩国一区二区| 久久99蜜桃精品| 97精品国产露脸对白| 8v天堂国产在线一区二区| 国产日韩av一区| 秋霞午夜av一区二区三区| 91丝袜国产在线播放| 亚洲精品一区二区在线观看| 三级在线观看一区二区| 91浏览器打开| 中文字幕一区二区视频| 国产成人一区在线| 精品成人a区在线观看| 麻豆视频观看网址久久| 欧美日韩国产在线观看| 一区二区在线观看免费| 99热国产精品| 亚洲综合色成人| 欧美日韩成人在线| 蜜臀av国产精品久久久久| 8v天堂国产在线一区二区| 婷婷六月综合亚洲| 亚洲精品一区二区在线观看| 国产伦精品一区二区三区免费| 久久精品亚洲精品国产欧美| 成人av网站免费| 日本韩国一区二区| 成人h动漫精品一区二| 综合久久久久久| 国产亚洲精久久久久久| 欧美日韩一级二级三级| 欧美在线一区二区三区| 成人激情开心网| 成人黄色在线看| 国产精品夜夜嗨| 国产电影一区二区三区| 国产自产2019最新不卡| 国产一区二区三区在线观看免费视频 | 色欧美片视频在线观看在线视频| 奇米精品一区二区三区在线观看| 国产精品高潮呻吟| 精品日本一线二线三线不卡| 91久久香蕉国产日韩欧美9色| 国产原创一区二区| 久久精品久久99精品久久| 亚洲欧美日韩小说| 日韩一区日韩二区| 中文字幕av一区二区三区| 日韩欧美一区二区不卡| 欧美日韩日日摸| 欧美午夜精品久久久久久超碰| 国产精品亚洲人在线观看| 久久成人羞羞网站| 视频精品一区二区| 五月综合激情网| 蜜桃视频一区二区三区在线观看| 亚洲v中文字幕| 亚洲成人免费av| 另类小说图片综合网| 国产麻豆视频一区二区| 97精品国产露脸对白| 在线欧美日韩国产| 欧美一级精品大片| www国产成人| 亚洲一区二区欧美| 韩国欧美国产1区| 色婷婷综合久久久久中文一区二区 | 日韩av网站免费在线| 福利电影一区二区| 在线视频你懂得一区| 91精品黄色片免费大全| 欧美国产日韩亚洲一区| 亚洲成人动漫在线免费观看| 国精产品一区一区三区mba桃花| 99免费精品视频| 国产色爱av资源综合区| 日本美女一区二区三区视频| 国产麻豆精品在线| 91影院在线免费观看| 久久综合九色综合久久久精品综合| 亚洲六月丁香色婷婷综合久久 | 日韩一卡二卡三卡国产欧美| 国产精品免费看片| 国产中文字幕精品| 精品久久久久久久久久久久包黑料| 一区二区三区在线播放| 成人午夜在线播放| 久久久精品黄色| 国产一区在线精品| 久久影院视频免费| 蜜臀99久久精品久久久久久软件| 欧美性三三影院| 亚洲777理论| 欧美一级高清大全免费观看| 五月天久久比比资源色| 911精品产国品一二三产区| 亚洲mv在线观看| 日韩一区二区影院| 老司机精品视频在线| 久久只精品国产| 成人蜜臀av电影| 亚洲视频每日更新| 欧美色图12p| 国产成人av网站| 亚洲天堂网中文字| 欧美日韩在线播放一区| 精品一区二区精品| 亚洲日本免费电影| 精品99久久久久久| 国产成人啪免费观看软件| 亚洲国产精品二十页| 在线观看日韩电影| 高清不卡在线观看av| 日韩专区欧美专区| 一区二区三区精密机械公司| 久久综合九色综合97婷婷 | 亚洲精品日产精品乱码不卡| 欧美v亚洲v综合ⅴ国产v| 91浏览器在线视频| 成人教育av在线|