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

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

?? pmc.c

?? NucleusPLUS嵌入式操作系統(tǒng)是目前最受歡迎的操作系統(tǒng)NucleusPLUS是為實(shí)時(shí)嵌入式應(yīng)用而設(shè)計(jì)的一個(gè)搶先式多任務(wù)操作系統(tǒng)內(nèi)核
?? C
?? 第 1 頁 / 共 3 頁
字號(hào):
/* 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.  */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人做爰69片免费看网站| 日韩欧美一级精品久久| 成人动漫在线一区| 国产成人av电影在线观看| 国产伦精品一区二区三区免费| 久久av老司机精品网站导航| 韩国一区二区三区| 国产精品亚洲一区二区三区妖精| 国产一区二区视频在线| 国产高清在线精品| 99国产精品久久久久久久久久| 91一区二区在线| 欧美三区在线观看| 欧美高清www午色夜在线视频| 91精品久久久久久蜜臀| 日韩美女视频在线| 国产日韩欧美综合在线| 国产精品传媒视频| 亚洲一区二区黄色| 久久99久久久久久久久久久| 国产成人超碰人人澡人人澡| 91小视频免费观看| 欧美另类久久久品| 精品国产乱码久久久久久闺蜜| 久久久久9999亚洲精品| 亚洲激情中文1区| 日本不卡一区二区三区| 国产精品一线二线三线精华| 91在线观看污| 欧美精品xxxxbbbb| 国产日韩欧美激情| 一区二区三区在线观看欧美| 蜜臀av亚洲一区中文字幕| 国产一区二区成人久久免费影院| 99国产精品久久久久| 欧美一三区三区四区免费在线看| 久久综合九色综合欧美98| 一区在线观看免费| 裸体一区二区三区| 不卡的av网站| 欧美一卡二卡三卡| 亚洲欧美综合色| 蜜臀精品久久久久久蜜臀 | 成人高清视频免费观看| 在线观看91精品国产入口| 精品捆绑美女sm三区| 日韩理论电影院| 蜜桃av一区二区| 91视频免费播放| 久久亚洲欧美国产精品乐播| 玉足女爽爽91| 国产99久久久精品| 欧美一区二区视频观看视频| 亚洲色图制服丝袜| 国内精品伊人久久久久av一坑| 91激情在线视频| 国产日韩欧美高清在线| 日本不卡一区二区| 日本电影欧美片| 中文字幕高清一区| 久久福利视频一区二区| 欧洲国内综合视频| 久久久久久久综合| 蜜桃一区二区三区在线观看| 91久久一区二区| 欧美韩国日本不卡| 九一九一国产精品| 69成人精品免费视频| ●精品国产综合乱码久久久久| 久久99精品国产麻豆婷婷洗澡| 欧美日韩亚洲国产综合| 最新欧美精品一区二区三区| 国产麻豆日韩欧美久久| 日韩亚洲欧美综合| 日韩一区精品视频| 欧美性生活大片视频| 国产精品电影一区二区三区| 国产精品99久久不卡二区| 日韩精品一区二区三区中文精品| 亚洲一区二区欧美| 色av一区二区| 亚洲精选一二三| www.亚洲激情.com| 中文字幕欧美日本乱码一线二线| 久久精品99久久久| 日韩免费视频一区二区| 日韩黄色免费网站| 欧美日韩国产片| 亚洲一本大道在线| 欧美日韩精品电影| 香蕉成人啪国产精品视频综合网| 欧美主播一区二区三区美女| 亚洲与欧洲av电影| 欧美三级欧美一级| 亚洲一区二区三区四区的| 在线免费不卡视频| 一区二区日韩av| 欧美三级中文字幕| 亚洲动漫第一页| 制服丝袜中文字幕一区| 日韩av电影天堂| 欧美一级艳片视频免费观看| 另类成人小视频在线| 精品国产一区二区三区久久影院 | 久久国产欧美日韩精品| 欧美成人一区二区三区| 久久成人久久爱| 久久只精品国产| 国产99精品视频| 亚洲天堂网中文字| 精品视频在线看| 日日夜夜免费精品| 日韩一区和二区| 国产精品夜夜爽| 综合久久久久久| 欧美天堂一区二区三区| 日日夜夜一区二区| 久久亚洲精品小早川怜子| 国产成a人亚洲精| 亚洲手机成人高清视频| 欧美性感一区二区三区| 捆绑变态av一区二区三区| 久久综合九色综合97婷婷女人| 成人免费av在线| 亚洲在线免费播放| 欧美成人bangbros| 国产成人av在线影院| 亚洲欧美日韩在线| 91麻豆精品91久久久久同性| 精品一区二区三区在线播放视频| 欧美激情一区二区在线| 欧美做爰猛烈大尺度电影无法无天| 午夜精品福利在线| 国产偷国产偷精品高清尤物 | 555夜色666亚洲国产免| 激情欧美一区二区| 亚洲欧美日韩系列| 日韩一级欧美一级| 成人一级黄色片| 亚洲成av人片一区二区| 精品成人私密视频| 日本大香伊一区二区三区| 久久99精品久久久久久国产越南| 欧美韩日一区二区三区| 欧美精品 国产精品| 国产98色在线|日韩| 香蕉久久一区二区不卡无毒影院 | 久久先锋影音av鲁色资源网| av电影一区二区| 麻豆一区二区三区| 中文字幕视频一区二区三区久| 欧美女孩性生活视频| 粉嫩av一区二区三区粉嫩| 性欧美疯狂xxxxbbbb| 国产精品午夜电影| 91精品国产一区二区| 成人动漫中文字幕| 麻豆成人免费电影| 亚洲视频在线观看一区| 精品国产乱码久久久久久蜜臀 | 欧美日韩国产经典色站一区二区三区| 久久超碰97中文字幕| 一个色综合网站| 中文字幕不卡在线| 日韩精品一区在线| 欧美色视频一区| www.爱久久.com| 韩国一区二区三区| 日韩在线一区二区三区| 亚洲精品成a人| 国产精品久久久久久一区二区三区| 欧美一区二区三区性视频| 91精品福利视频| 99久久精品情趣| 国产福利精品一区二区| 日本成人在线看| 亚洲va在线va天堂| 亚洲欧美经典视频| 国产精品久久久久久久裸模 | 国产在线精品一区二区不卡了 | 日韩高清国产一区在线| 一区二区不卡在线播放 | 亚洲国产成人午夜在线一区| 欧美一区二区日韩| 欧美男女性生活在线直播观看| av影院午夜一区| 成人免费毛片aaaaa**| 国产在线一区观看| 韩国v欧美v日本v亚洲v| 麻豆freexxxx性91精品| 日韩va欧美va亚洲va久久| 亚洲一区国产视频| 亚洲免费伊人电影| 亚洲免费观看高清完整版在线| 国产精品全国免费观看高清 | 日韩av午夜在线观看| 亚洲国产精品久久久男人的天堂 | 91麻豆福利精品推荐| 99国产精品一区| 一本色道久久综合亚洲91|