コード例 #1
0
ファイル: dllLib.c プロジェクト: andy345/vxworks5
DL_LIST *dllCreate (void)
    {
    FAST DL_LIST *pList = (DL_LIST *) malloc ((unsigned) sizeof (DL_LIST));

    dllInit (pList);

    return (pList);
    }
コード例 #2
0
ファイル: qFifoLib.c プロジェクト: phoboz/vmx
LOCAL STATUS qFifoInit(
    Q_FIFO_HEAD *pQFifoHead
    )
{

    dllInit(&pQFifoHead->qFifo.head);

    return OK;
}
コード例 #3
0
ファイル: qPriDeltaLib.c プロジェクト: andy345/vxworks5
STATUS qPriDeltaInit
    (
    Q_PRI_HEAD *pQPriHead
    )
    {
    dllInit (pQPriHead);	 /* initialize doubly linked list */

    return (OK);
    }
コード例 #4
0
ファイル: qFifoLib.c プロジェクト: andy345/vxworks5
STATUS qFifoInit
    (
    Q_FIFO_HEAD *pQFifoHead
    )
    {
    dllInit (pQFifoHead);

    return (OK);
    }
コード例 #5
0
void memPartInit(PART_ID partId, char* pPool, unsigned poolSize)
{
	memset((void*)partId, 0, sizeof(*partId));

	partId->options = memPartDefaultOption;
	partId->minBlockWords = sizeof (FREE_BLOCK) >> 1;	/* word not byte */

	(* memPartSemInitRtn) (partId);
	
	dllInit(&partId->freeList);
	
	objCoreInit(&partId->objCore, memPartClassId);
	
	memPartAddToPool(partId, pPool, poolSize);
}
コード例 #6
0
ファイル: memPartLib.c プロジェクト: andy345/vxworks5
void memPartInit 
    (
    FAST PART_ID partId,        /* partition to initialize */
    char *pPool,                /* pointer to memory block */
    unsigned poolSize           /* block size in bytes */
    )
    {
    /* initialize partition descriptor */

    bfill ((char *) partId, sizeof (*partId), 0);

    partId->options	  = memPartOptionsDefault;
    partId->minBlockWords = sizeof (FREE_BLOCK) >> 1;

    /* initialize partition semaphore with a virtual function so semaphore
     * type is selectable.  By default memPartLibInit() will utilize binary
     * semaphores while memInit() will utilize mutual exclusion semaphores
     * with the options stored in _mutexOptionsMemLib.
     */

    (* memPartSemInitRtn) (partId);

    dllInit (&partId->freeList);			/* init. free list */

#ifdef WV_INSTRUMENTATION
    if (wvObjIsEnabled)
    {
    /* windview - connect object class event logging routine */
    objCoreInit (&partId->objCore, memPartInstClassId); 
    }
    else
#endif
    objCoreInit (&partId->objCore, memPartClassId);	/* initialize core */

    (void) memPartAddToPool (partId, pPool, poolSize);
    }
コード例 #7
0
STATUS qPriListInit(Q_PRI_HEAD* pQPriHead)
{
	dllInit(pQPriHead);
	return (OK);
}