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

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

?? pic.c

?? nucleas source code
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function deletes a pipe and removes it from the list of     */
/*      created pipes.  All tasks suspended on the pipe are              */
/*      resumed.  Note that this function does not free the memory       */
/*      associated with the pipe.                                        */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      PICE_Delete_Pipe                    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                  Protect against system access*/
/*      TCT_System_Unprotect                Release system protection    */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pipe_ptr                            Pipe 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  PIC_Delete_Pipe(NU_PIPE *pipe_ptr)
{

R1 PI_PCB      *pipe;                       /* Pipe control block ptr    */
PI_SUSPEND     *suspend_ptr;                /* Suspend block pointer     */
PI_SUSPEND     *next_ptr;                   /* Next suspension block ptr */
STATUS          preempt;                    /* Status for resume call    */
NU_SUPERV_USER_VARIABLES

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

    /* Move input pipe pointer into internal pointer.  */
    pipe =  (PI_PCB *) pipe_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_PIPE_ID, (UNSIGNED) pipe,
                                        (UNSIGNED) 0, (UNSIGNED) 0);

#endif

    /* Protect against access to the pipe.  */
    TCT_System_Protect();

#ifdef INCLUDE_PROVIEW
    _RTProf_DumpPipe(RT_PROF_DELETE_PIPE,pipe,RT_PROF_OK);
#endif /* INCLUDE_PROVIEW */

    /* Clear the pipe ID.  */
    pipe -> pi_id =  0;

    /* Release protection.  */
    TCT_Unprotect();

    /* Protect against access to the list of created pipes.  */
    TCT_Protect(&PID_List_Protect);

    /* Remove the pipe from the list of created pipes.  */
    CSC_Remove_From_List(&PID_Created_Pipes_List, &(pipe -> pi_created));

    /* Decrement the total number of created pipes.  */
    PID_Total_Pipes--;

    /* Pickup the suspended task pointer list.  */
    suspend_ptr =  pipe -> pi_suspension_list;

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

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

        /* Resume the suspended task.  Insure that the status returned is
           NU_PIPE_DELETED.  */
        suspend_ptr -> pi_return_status =  NU_PIPE_DELETED;

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

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

        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == pipe -> pi_suspension_list)

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

            /* Setup the next suspension pointer.  */
            suspend_ptr =  next_ptr;

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

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

    /* Pickup the urgent message suspension list.  */
    suspend_ptr =  pipe -> pi_urgent_list;

    /* Walk the chain task(s) currently suspended on the pipe.  */
    while (suspend_ptr)
    {

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

        /* Resume the suspended task.  Insure that the status returned is
           NU_PIPE_DELETED.  */
        suspend_ptr -> pi_return_status =  NU_PIPE_DELETED;

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

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

        /* Determine if the next is the same as the head pointer.  */
        if (next_ptr == pipe -> pi_urgent_list)

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

            /* Position suspend pointer to the next block.  */
            suspend_ptr =  next_ptr;

        /* Modify current protection.  */
        TCT_Set_Current_Protect(&PID_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 pipes.  */
    TCT_Unprotect();

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PIC_Send_To_Pipe                                                 */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function sends a message to the specified pipe.  The        */
/*      message length is determined by the caller.  If there are one    */
/*      or more tasks suspended on the pipe for a message, the message   */
/*      is copied into the message area of the first waiting task.  If   */
/*      the task's request is satisfied, it is resumed.  Otherwise, if   */
/*      the pipe cannot hold the message, suspension of the calling      */
/*      task is an option of the caller.                                 */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      PICE_Send_To_Pipe                   Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Place on suspend list        */
/*      CSC_Priority_Place_On_List          Place on priority list       */
/*      CSC_Remove_From_List                Remove from suspend list     */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      TCC_Resume_Task                     Resume a suspended task      */
/*      TCC_Suspend_Task                    Suspend calling task         */
/*      TCC_Task_Priority                   Pickup task's priority       */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Control_To_System               Transfer control to system   */
/*      TCT_Current_Thread                  Pickup current thread pointer*/
/*      TCT_System_Protect                  Protect pipe                 */
/*      TCT_Unprotect                       Release protection           */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pipe_ptr                            Pipe control block pointer   */
/*      message                             Pointer to message to send   */
/*      size                                Size of message to send      */
/*      suspend                             Suspension option if full    */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_SUCCESS                          If service is successful     */
/*      NU_PIPE_FULL                        If pipe is currently full    */
/*      NU_TIMEOUT                          If timeout on service expires*/
/*      NU_PIPE_DELETED                     If pipe was deleted during   */
/*                                            suspension                 */
/*      NU_PIPE_RESET                       If pipe was reset 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, optimized copy loop,                   */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  PIC_Send_To_Pipe(NU_PIPE *pipe_ptr, VOID *message, UNSIGNED size,
                                                        UNSIGNED suspend)
{

R1 PI_PCB      *pipe;                       /* Pipe control block ptr    */
PI_SUSPEND      suspend_block;              /* Allocate suspension block */
PI_SUSPEND     *suspend_ptr;                /* Pointer to suspend block  */
R2 BYTE_PTR     source;                     /* Pointer to source         */
R3 BYTE_PTR     destination;                /* Pointer to destination    */
UNSIGNED        copy_size;                  /* Partial copy size         */
R4 INT          i;                          /* Working counter           */
UNSIGNED        pad =  0;                   /* Number of pad bytes       */
TC_TCB         *task;                       /* Task pointer              */
STATUS          preempt;                    /* Preempt flag              */
STATUS          status;                     /* Completion status         */
NU_SUPERV_USER_VARIABLES

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产乱码最新视频| 一区二区三区丝袜| 欧美夫妻性生活| 国产欧美一区二区三区在线看蜜臀| 亚洲免费观看在线视频| 久久69国产一区二区蜜臀| 99久久精品国产导航| 日韩女优电影在线观看| 亚洲人精品午夜| 国产成人精品亚洲777人妖| 欧美日韩亚洲综合一区| 日韩伦理电影网| 精品夜夜嗨av一区二区三区| 欧美日本在线播放| 亚洲欧洲综合另类在线| 成人综合婷婷国产精品久久| 欧美成人一区二区三区片免费| 亚洲一区二区三区不卡国产欧美| 成人av免费网站| 国产午夜精品一区二区三区视频 | 中文字幕一区二区三区在线播放 | 日韩二区三区在线观看| 色综合天天在线| 国产精品大尺度| 国产传媒一区在线| www久久久久| 精品在线免费视频| 日韩欧美二区三区| 毛片一区二区三区| 在线综合+亚洲+欧美中文字幕| 亚洲夂夂婷婷色拍ww47| 91丨porny丨中文| 国产精品久久毛片a| 成人午夜电影网站| 国产精品伦理一区二区| 99久久99久久免费精品蜜臀| 国产女主播视频一区二区| 亚洲.国产.中文慕字在线| 成人丝袜18视频在线观看| 久久久精品tv| 国产精品自拍在线| 国产清纯白嫩初高生在线观看91 | 久久久青草青青国产亚洲免观| 麻豆精品视频在线观看免费| 日韩一区二区三区高清免费看看| 青青草精品视频| 久久亚洲一级片| 成人激情av网| 亚洲欧美日韩国产中文在线| 欧美日韩你懂得| 男男视频亚洲欧美| 久久综合九色综合97_久久久 | 国产精品午夜免费| 94色蜜桃网一区二区三区| 亚洲午夜精品久久久久久久久| 91精品在线一区二区| 精品写真视频在线观看 | 国产91露脸合集magnet| 亚洲国产精品二十页| 91视频在线看| 日本不卡一区二区三区高清视频| 欧美精品一区二区三| 国产.欧美.日韩| 亚洲国产精品一区二区久久恐怖片| 7777精品伊人久久久大香线蕉经典版下载 | 日韩女优视频免费观看| www激情久久| 日韩欧美一卡二卡| 国产一区二区三区观看| 最新久久zyz资源站| 欧美人牲a欧美精品| 国产成人丝袜美腿| 亚洲成人免费av| 欧美国产97人人爽人人喊| 欧美日韩一区二区三区免费看| 国内精品国产三级国产a久久| 亚洲黄色在线视频| 久久亚洲综合色| 在线观看视频一区二区欧美日韩| 狠狠色狠狠色综合| 亚洲综合精品久久| 国产亚洲欧洲一区高清在线观看| 欧美天堂一区二区三区| 国产乱子轮精品视频| 亚洲一区在线免费观看| 欧美高清在线视频| 日韩美一区二区三区| 色综合网站在线| 国产传媒欧美日韩成人| 亚洲va中文字幕| 亚洲精品欧美激情| 国产调教视频一区| 日韩欧美一区电影| 欧美丰满高潮xxxx喷水动漫| 色老综合老女人久久久| 高清不卡在线观看| 激情综合色播激情啊| 亚洲一区日韩精品中文字幕| 国产精品久久久一区麻豆最新章节| 精品国产99国产精品| 欧美色手机在线观看| 91蜜桃免费观看视频| 成人一区二区三区视频| 国产尤物一区二区| 美女视频一区在线观看| 天天影视色香欲综合网老头| 亚洲一区二区不卡免费| 亚洲精品日韩一| 亚洲欧美区自拍先锋| 中文字幕在线不卡国产视频| 中文字幕国产精品一区二区| 欧美国产激情二区三区 | 亚洲精品日日夜夜| 国产精品夫妻自拍| 中文字幕在线视频一区| 国产精品天天看| 国产精品毛片a∨一区二区三区 | av不卡在线播放| av欧美精品.com| 99精品久久99久久久久| 一本色道久久加勒比精品| 在线免费观看不卡av| 欧洲精品一区二区| 欧美日韩性生活| 欧美一区二区三区免费| 精品久久久久久最新网址| 精品日韩在线观看| 26uuu精品一区二区| 久久久久久免费| 国产精品久久一卡二卡| 亚洲欧美日韩综合aⅴ视频| 亚洲综合色噜噜狠狠| 亚洲444eee在线观看| 美腿丝袜在线亚洲一区| 国产综合久久久久久鬼色| 国产**成人网毛片九色 | 精品国产青草久久久久福利| 精品对白一区国产伦| 国产精品久久午夜夜伦鲁鲁| 一区二区三区四区av| 捆绑紧缚一区二区三区视频| 国产91在线看| 欧美色电影在线| 精品va天堂亚洲国产| 国产精品福利电影一区二区三区四区 | 日本一区二区三区在线观看| 亚洲精品视频自拍| 日本成人在线看| 不卡的av在线播放| 欧美日本一区二区| 26uuuu精品一区二区| 亚洲黄色录像片| 国产乱码一区二区三区| 91免费看视频| 日韩欧美中文一区二区| 国产精品白丝在线| 日韩高清一区在线| 99久久伊人精品| 日韩美女视频在线| 伊人性伊人情综合网| 国产91精品一区二区| 欧美日韩国产一区| 欧美激情在线观看视频免费| 亚洲mv大片欧洲mv大片精品| 成人午夜激情片| 日韩视频免费观看高清在线视频| 国产精品美女久久久久久| 蜜桃精品视频在线| 色菇凉天天综合网| 久久婷婷色综合| 日日摸夜夜添夜夜添精品视频 | 7777精品伊人久久久大香线蕉 | 日本久久一区二区| 久久久噜噜噜久久中文字幕色伊伊| 亚洲成av人片www| 91丨九色丨尤物| 国产欧美日韩在线| 精品亚洲成a人| 欧美一区在线视频| 亚洲国产成人porn| 日本久久一区二区三区| 中文子幕无线码一区tr| 激情六月婷婷久久| 日韩无一区二区| 婷婷一区二区三区| 日本高清不卡视频| 最近中文字幕一区二区三区| 国产成人精品三级麻豆| 精品国产乱码久久久久久牛牛| 日本亚洲天堂网| 欧美一级精品在线| 青草国产精品久久久久久| 在线电影国产精品| 亚洲国产日日夜夜| 欧美在线高清视频| 一区二区三区资源| 91久久久免费一区二区| 亚洲男女毛片无遮挡| 一本色道久久综合亚洲aⅴ蜜桃| 亚洲视频一区二区在线观看|