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

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

?? memlib.c

?? vxworks操作系統(tǒng)Intel體系結(jié)構(gòu)下內(nèi)核源代碼
?? C
?? 第 1 頁 / 共 3 頁
字號:
	    		    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);    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看日产精品| 国产精品午夜在线| 亚洲成av人片一区二区三区| 成人一级黄色片| 中文字幕一区二区三区色视频| av中文字幕不卡| 一区二区三区波多野结衣在线观看| 91网址在线看| 亚欧色一区w666天堂| 欧美不卡123| 国产美女av一区二区三区| 久久综合九色综合97婷婷女人 | 日韩精品在线一区二区| 美女任你摸久久 | 日韩精品自拍偷拍| 国产精品亚洲а∨天堂免在线| 欧美国产一区二区| 日本乱人伦aⅴ精品| 日本欧美一区二区三区| 国产亲近乱来精品视频| 91色九色蝌蚪| 免费不卡在线视频| 国产精品欧美一区喷水| 欧美日韩亚州综合| 国产999精品久久| 亚洲一区二区中文在线| 精品国产乱子伦一区| 99久久夜色精品国产网站| 日韩成人dvd| 成人欧美一区二区三区1314| 欧美电影一区二区| 成人性生交大片免费看视频在线| 亚洲一级二级在线| 国产视频一区二区在线| 欧美视频在线观看一区二区| 国产美女视频一区| 五月婷婷欧美视频| 国产精品三级视频| 91精品国产免费| av不卡一区二区三区| 看国产成人h片视频| 亚洲精品乱码久久久久久久久 | 国模大尺度一区二区三区| 综合激情成人伊人| 26uuu亚洲综合色| 欧美午夜精品久久久久久超碰 | 成人av资源在线观看| 日韩中文字幕区一区有砖一区| 国产精品久久久久婷婷| 欧美mv日韩mv国产网站| 欧美在线观看一区| 97成人超碰视| 国产精品一卡二卡在线观看| 日韩在线a电影| 亚洲午夜精品一区二区三区他趣| 中文字幕国产一区| 久久久精品2019中文字幕之3| 日韩一区二区三区四区五区六区| 欧美性xxxxxxxx| a级高清视频欧美日韩| 国产成人在线视频免费播放| 极品尤物av久久免费看| 蜜桃av一区二区| 日韩在线一区二区| 午夜精品久久久久久久蜜桃app| 亚洲视频免费在线观看| 成人免费一区二区三区视频| 亚洲欧洲日产国产综合网| 国产清纯在线一区二区www| 久久蜜桃av一区精品变态类天堂 | xfplay精品久久| 日韩欧美亚洲国产精品字幕久久久 | 欧日韩精品视频| 91网站在线观看视频| av动漫一区二区| 91社区在线播放| 色老综合老女人久久久| 在线观看一区二区精品视频| 91福利精品第一导航| 在线区一区二视频| 欧美日韩1234| 91麻豆精品91久久久久同性| 日韩欧美一区在线观看| 一区二区三区毛片| 一区二区三区在线免费观看| 亚洲综合成人在线| 视频精品一区二区| 久久成人综合网| 国产福利一区二区三区视频在线| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 亚洲国产欧美日韩另类综合 | 国产成人午夜99999| 成人少妇影院yyyy| 色婷婷精品大视频在线蜜桃视频| 色婷婷综合久久久久中文| 欧美色图片你懂的| 欧美一区二区在线看| 久久久久高清精品| 亚洲同性gay激情无套| 亚洲sss视频在线视频| 美女网站一区二区| 国产91露脸合集magnet| 日本韩国一区二区| 日韩视频在线一区二区| 国产精品女人毛片| 亚洲国产精品久久久久秋霞影院 | 成人av在线网站| 欧美撒尿777hd撒尿| 欧美精品一二三| 久久久综合网站| 一区二区三区在线观看欧美 | 成人国产精品视频| 欧美日韩中文字幕一区| 久久午夜色播影院免费高清 | 欧美精品第1页| 国产欧美视频在线观看| 亚洲伊人伊色伊影伊综合网| 免费成人美女在线观看| 成人精品国产福利| 欧美日本在线看| 国产精品久久久久aaaa樱花| 亚洲成av人片| 成人听书哪个软件好| 欧美日韩国产小视频在线观看| 久久久99久久| 午夜精品在线看| 99久久伊人精品| 精品少妇一区二区三区视频免付费 | 日本丶国产丶欧美色综合| 欧美精品一区二区不卡 | 国产精品国产三级国产专播品爱网| 午夜不卡在线视频| 99久久免费精品高清特色大片| 精品少妇一区二区三区免费观看| 亚洲黄色在线视频| 国产白丝网站精品污在线入口| 4438成人网| 亚洲国产视频网站| 色婷婷一区二区三区四区| 久久久久99精品一区| 久久精品国产网站| 亚洲人成亚洲人成在线观看图片 | av午夜精品一区二区三区| 精品sm捆绑视频| 婷婷成人综合网| 欧美丝袜自拍制服另类| 亚洲少妇30p| 成人午夜av电影| 国产女同互慰高潮91漫画| 日日夜夜精品视频天天综合网| 91官网在线观看| 亚洲精品你懂的| 91年精品国产| 综合久久给合久久狠狠狠97色 | 一本色道久久加勒比精品| 国产清纯美女被跳蛋高潮一区二区久久w | 国产欧美视频一区二区| 韩国女主播一区二区三区| 日韩欧美国产高清| 精品一区二区三区免费观看 | 综合在线观看色| av午夜一区麻豆| 日韩码欧中文字| 色屁屁一区二区| 亚洲综合清纯丝袜自拍| 在线一区二区三区| 亚洲国产美女搞黄色| 欧美日韩国产欧美日美国产精品| 亚洲电影在线免费观看| 欧美色视频在线观看| 午夜国产不卡在线观看视频| 欧美视频三区在线播放| 天堂成人国产精品一区| 日韩一级视频免费观看在线| 精品一区二区三区在线视频| 日韩欧美电影在线| 国内国产精品久久| 欧美国产精品一区| 日本伦理一区二区| 天天av天天翘天天综合网色鬼国产 | 国产a视频精品免费观看| 国产精品无码永久免费888| 成人avav影音| 一区二区三区在线免费播放| 欧美三电影在线| 精品一二线国产| 中日韩免费视频中文字幕| 一本久道中文字幕精品亚洲嫩| 亚洲精品国产成人久久av盗摄| 欧美日韩三级在线| 精品亚洲成a人在线观看| 亚洲国产高清不卡| 欧美主播一区二区三区美女| 蜜臀精品久久久久久蜜臀 | 欧美亚洲综合色| 美国欧美日韩国产在线播放| 欧美激情一区二区三区全黄| 在线观看免费成人| 久久99精品久久久久久动态图| 国产精品国产三级国产a|