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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pmc.c

?? nucleas source code
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      PMCE_Delete_Partition_Pool          Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Remove_From_List                Remove node from list        */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Resume_Task                     Resume a suspended task      */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Control_To_System               Transfer control to system   */
/*      TCT_Protect                         Protect created list         */
/*      TCT_Set_Current_Protect             Modify current protection    */
/*      TCT_System_Protect                  Setup system protection      */
/*      TCT_System_Unprotect                Release system protection    */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pool_ptr                            Partition pool control block */
/*                                            pointer                    */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                                                       */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Changed function interfaces to                   */
/*                      match those in prototype,                        */
/*                      added register options, changed                  */
/*                      protection logic to reduce                       */
/*                      overhead, resulting in                           */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  PMC_Delete_Partition_Pool(NU_PARTITION_POOL *pool_ptr)
{

R1 PM_PCB      *pool;                       /* Pool control block ptr    */
PM_SUSPEND     *suspend_ptr;                /* Suspend block pointer     */
PM_SUSPEND     *next_ptr;                   /* Next suspend block        */
STATUS          preempt;                    /* Status for resume call    */
NU_SUPERV_USER_VARIABLES

    /* Switch to supervisor mode */
    NU_SUPERVISOR_MODE();

    /* Move input pool pointer into internal pointer.  */
    pool =  (PM_PCB *) pool_ptr;


#ifdef  NU_ENABLE_STACK_CHECK

    /* Call stack checking function to check for an overflow condition.  */
    TCT_Check_Stack();

#endif

#ifdef  NU_ENABLE_HISTORY

    /* Make an entry that corresponds to this function in the system history
       log.  */
    HIC_Make_History_Entry(NU_DELETE_PARTITION_POOL_ID, (UNSIGNED) pool,
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

    /* Protect against simultaneous access to the partition pool.  */
    TCT_System_Protect();

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpPartitionPool(RT_PROF_DELETE_PARTITION_POOL,pool,RT_PROF_OK);
#endif /* INCLUDE_PROVIEW */

    /* Clear the partition pool ID.  */
    pool -> pm_id =  0;

    /* Release protection.  */
    TCT_Unprotect();

    /* Protect against access to the list of created partition pools.  */
    TCT_Protect(&PMD_List_Protect);

    /* Remove the partition pool from the list of created partition pools.  */
    CSC_Remove_From_List(&PMD_Created_Pools_List, &(pool -> pm_created));

    /* Decrement the total number of created partition pools.  */
    PMD_Total_Pools--;

    /* Pickup the suspended task pointer list.  */
    suspend_ptr =  pool -> pm_suspension_list;

    /* Walk the chain task(s) currently suspended on the partition pool.  */
    preempt =  0;
    while (suspend_ptr)
    {

        /* Protect against system access.  */
        TCT_System_Protect();

        /* Resume the suspended task.  Insure that the status returned is
           NU_POOL_DELETED.  */
        suspend_ptr -> pm_return_pointer =  NU_NULL;
        suspend_ptr -> pm_return_status =   NU_POOL_DELETED;

        /* Point to the next suspend structure in the link.  */
        next_ptr =  (PM_SUSPEND *) (suspend_ptr -> pm_suspend_link.cs_next);

        /* Resume the specified task.  */
        preempt =  preempt |
            TCC_Resume_Task((NU_TASK *) suspend_ptr -> pm_suspended_task,
                                                NU_PARTITION_SUSPEND);

        /* Determine if the next is the same as the current pointer.  */
        if (next_ptr == pool -> pm_suspension_list)

            /* Clear the suspension pointer to signal the end of the list
               traversal.  */
            suspend_ptr =  NU_NULL;
        else

            /* Move the next pointer into the suspend block pointer.  */
            suspend_ptr =  next_ptr;

        /* Modify current protection.  */
        TCT_Set_Current_Protect(&PMD_List_Protect);

        /* Clear the system protection.  */
        TCT_System_Unprotect();
    }

    /* Determine if preemption needs to occur.  */
    if (preempt)

        /* Transfer control to system to facilitate preemption.  */
        TCT_Control_To_System();

    /* Release protection against access to the list of created partition
       pools. */
    TCT_Unprotect();

    /* Return to user mode */
    NU_USER_MODE();

    /* Return a successful completion.  */
    return(NU_SUCCESS);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PMC_Allocate_Partition                                           */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function allocates a memory partition from the specified    */
/*      memory partition pool.  If a memory partition is currently       */
/*      available, this function is completed immediately.  Otherwise,   */
/*      if there are no partitions currently available, suspension is    */
/*      possible.                                                        */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      PMCE_Allocate_Partition             Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Place on suspend list        */
/*      CSC_Priority_Place_On_List          Place on priority list       */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Suspend_Task                    Suspend calling task         */
/*      TCC_Task_Priority                   Pickup task's priority       */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Current_Thread                  Pickup current thread pointer*/
/*      TCT_System_Protect                  Protect partition pool       */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pool_ptr                            Memory partition pool pointer*/
/*      return_pointer                      Pointer to the destination   */
/*                                            memory pointer             */
/*      suspend                             Suspension option if full    */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                          If service is successful     */
/*      NU_NO_PARTITION                     No partitions are available  */
/*      NU_TIMEOUT                          If timeout on service        */
/*      NU_POOL_DELETED                     If partition pool deleted    */
/*                                            during suspension          */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*        DATE                    REMARKS                                */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Changed function interfaces to                   */
/*                      match those in prototype,                        */
/*                      added register options, changed                  */
/*                      protection logic to reduce                       */
/*                      overhead, resulting in                           */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  PMC_Allocate_Partition(NU_PARTITION_POOL *pool_ptr,
                                VOID **return_pointer, UNSIGNED suspend)
{

R1 PM_PCB      *pool;                       /* Pool control block ptr    */
R2 PM_SUSPEND  *suspend_ptr;                /* Suspend block pointer     */
PM_SUSPEND      suspend_block;              /* Allocate suspension block */
R3 PM_HEADER   *partition_ptr;              /* Pointer to partition      */
TC_TCB         *task;                       /* Task pointer              */
STATUS          status;                     /* Completion status         */
NU_SUPERV_USER_VARIABLES

    /* Switch to supervisor mode */
    NU_SUPERVISOR_MODE();

    /* Move input pool pointer into internal pointer.  */
    pool =  (PM_PCB *) pool_ptr;


#ifdef  NU_ENABLE_STACK_CHECK

    /* Call stack checking function to check for an overflow condition.  */
    TCT_Check_Stack();

#endif

#ifdef  NU_ENABLE_HISTORY

    /* Make an entry that corresponds to this function in the system history
       log.  */
    HIC_Make_History_Entry(NU_ALLOCATE_PARTITION_ID, (UNSIGNED) pool,
                                (UNSIGNED) return_pointer, (UNSIGNED) suspend);

#endif

    /* Initialize the status as successful.  */
    status =  NU_SUCCESS;

    /* Protect against simultaneous access to the partition pool.  */
    TCT_System_Protect();

    /* Determine if there is an available memory partition.  */
    if (pool -> pm_available)
    {

        /* Partition available.  */

        /* Decrement the available count.  */
        pool -> pm_available--;

        /* Increment the allocated count.  */
        pool -> pm_allocated++;

        /* Unlink the first memory partition and return the pointer to the
           caller.  */
        partition_ptr =              pool -> pm_available_list;
        pool -> pm_available_list =  partition_ptr -> pm_next_available;
        partition_ptr -> pm_next_available =  NU_NULL;

        /* Return a memory address to the caller.  */
        *return_pointer =  (VOID *) (((BYTE_PTR) partition_ptr) + PM_OVERHEAD);

#ifdef INCLUDE_PROVIEW
        _RTProf_DumpPartitionPool(RT_PROF_ALLOCATE_PARTITION,pool,RT_PROF_OK);
#endif /* INCLUDE_PROVIEW */

    }
    else
    {

        /* A partition is not available.  Determine if suspension is
           required. */
        if (suspend)
        {

            /* Suspension is selected.  */

            /* Increment the number of tasks waiting.  */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区欧美精品| 久久视频一区二区| 久久99精品国产麻豆婷婷| 国产精品三级av| 欧美一级精品大片| 色综合一区二区| 国产精品影视在线| 日韩专区欧美专区| 一区二区三区四区精品在线视频| 久久久久国产精品麻豆ai换脸 | 日韩欧美一区二区不卡| 色女孩综合影院| 成人性视频免费网站| 久久99精品久久久久久动态图| 亚洲精品国产品国语在线app| 国产视频一区二区三区在线观看 | 中文字幕在线不卡一区| 精品久久五月天| 欧美二区乱c少妇| 91久久精品网| 色婷婷综合久久久久中文| 成人h版在线观看| 国产精品77777竹菊影视小说| 麻豆91精品视频| 日本亚洲最大的色成网站www| 亚洲自拍偷拍图区| 亚洲精品日日夜夜| 亚洲精品欧美专区| 亚洲色图清纯唯美| 亚洲人成伊人成综合网小说| 亚洲国产精品成人久久综合一区| 久久综合久久综合九色| 久久只精品国产| 日韩精品一区二区在线观看| 日韩一级片网址| 欧美一区二区在线播放| 69久久99精品久久久久婷婷| 这里只有精品视频在线观看| 欧美日韩第一区日日骚| 欧美在线不卡视频| 欧美婷婷六月丁香综合色| 欧美色精品在线视频| 在线观看91视频| 91麻豆精品国产无毒不卡在线观看| 欧美人妖巨大在线| 欧美一区二区在线看| 日韩三级伦理片妻子的秘密按摩| 中文字幕日韩一区| 欧美精品日韩精品| 国产婷婷色一区二区三区在线| 日本高清成人免费播放| 91福利资源站| 欧美日韩aaa| 91精品国产高清一区二区三区| 日韩一区二区免费视频| 欧美网站一区二区| 久久久久久99精品| 天天综合网天天综合色| 成人av在线资源网| 日韩免费一区二区三区在线播放| 最新中文字幕一区二区三区| 麻豆成人久久精品二区三区红| 91在线视频免费观看| 精品国产第一区二区三区观看体验 | 成人免费毛片a| 欧美一区二区二区| 亚洲精品国产a| 成人午夜伦理影院| 精品三级av在线| 亚洲成人资源网| 99国产精品视频免费观看| www精品美女久久久tv| 午夜影院在线观看欧美| 91天堂素人约啪| 国产日韩欧美高清在线| 精品一区二区三区日韩| 欧美福利一区二区| 亚洲永久免费视频| 99久久婷婷国产精品综合| 国产亚洲欧美中文| 国产尤物一区二区| 日韩免费成人网| 日本中文字幕不卡| 欧美日韩精品一区二区在线播放| 亚洲蜜桃精久久久久久久| 成人综合婷婷国产精品久久| 久久亚洲一级片| 老司机精品视频在线| 欧美一区二区三区色| 亚洲18女电影在线观看| 欧美色图12p| 亚洲国产精品一区二区久久| 日本道精品一区二区三区| 亚洲品质自拍视频| 色综合天天视频在线观看| 国产精品福利影院| 不卡一二三区首页| 国产精品免费久久久久| 欧美成人a∨高清免费观看| 日韩精品成人一区二区在线| 欧美日韩午夜影院| 日韩综合一区二区| 日韩精品一区二区在线| 国内精品伊人久久久久av一坑| 欧美一级在线观看| 美日韩黄色大片| 欧美成人三级在线| 国产精品自拍在线| 久久综合av免费| 懂色av一区二区夜夜嗨| 中文字幕av不卡| 91网页版在线| 亚洲成av人综合在线观看| 51精品视频一区二区三区| 日韩1区2区日韩1区2区| 欧美电影免费观看高清完整版在| 久久成人综合网| 国产情人综合久久777777| 成人aaaa免费全部观看| 亚洲嫩草精品久久| 欧美精品视频www在线观看| 奇米一区二区三区av| 久久亚洲私人国产精品va媚药| 成人午夜av影视| 一区二区三区波多野结衣在线观看 | 69成人精品免费视频| 久久99精品国产.久久久久久| 久久久精品黄色| 色综合久久88色综合天天 | 欧美日韩一区二区三区不卡| 日韩在线卡一卡二| 2024国产精品| 91免费在线看| 免费看黄色91| 国产视频一区不卡| 欧美无乱码久久久免费午夜一区| 久久精品免费看| 国产精品网站导航| 欧美在线三级电影| 国产剧情一区在线| 一区二区三区在线视频观看58| 欧美一级欧美三级| 成人动漫一区二区三区| 日韩在线播放一区二区| 国产亚洲精品超碰| 欧美影视一区在线| 国内精品在线播放| 亚洲午夜私人影院| 久久久精品影视| 欧美性生交片4| 国产在线视视频有精品| 色婷婷久久久综合中文字幕| 日本视频在线一区| 国产精品久久久99| 日韩免费一区二区三区在线播放| 91原创在线视频| 精品亚洲欧美一区| 亚洲韩国精品一区| 国产精品视频免费| 91精品福利在线一区二区三区| 成人性生交大片免费看中文| 日本一区中文字幕 | 国产成人丝袜美腿| 天天色天天爱天天射综合| 国产精品美女久久久久高潮| 欧美一区二区成人| 色综合久久久久网| 国产91富婆露脸刺激对白| 天堂成人国产精品一区| 中文字幕五月欧美| 久久这里只有精品视频网| 欧美日韩成人激情| 91视视频在线观看入口直接观看www| 久热成人在线视频| 日韩国产欧美在线播放| 一个色在线综合| 国产精品久久久久影院亚瑟 | 久久国产剧场电影| 亚洲国产美女搞黄色| 中文字幕日韩一区| 国产日韩三级在线| 日韩欧美一区二区免费| 欧美日韩高清一区二区不卡| 在线免费观看日本欧美| youjizz久久| 成人午夜大片免费观看| 国产精品一区二区在线看| 精品无人区卡一卡二卡三乱码免费卡| 亚洲成人福利片| 亚洲一区在线视频观看| 亚洲乱码一区二区三区在线观看| 欧美经典三级视频一区二区三区| 2024国产精品| 久久你懂得1024| 精品黑人一区二区三区久久 | 老鸭窝一区二区久久精品| av不卡免费在线观看| 国产精品亚洲综合一区在线观看| 亚洲成人久久影院| 亚洲一区二区三区中文字幕|