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

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

?? pic.c

?? nucleas source code
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*************************************************************************/
/*                                                                       */
/*               Copyright Mentor Graphics Corporation 2002              */
/*                         All Rights Reserved.                          */
/*                                                                       */
/* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS  */
/* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS   */
/* SUBJECT TO LICENSE TERMS.                                             */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                               VERSION       */
/*                                                                       */
/*      pic.c                                          Nucleus PLUS 1.14 */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      PI - Pipe Management                                             */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains the core routines for the pipe management     */
/*      component.                                                       */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      PIC_Create_Pipe                     Create a message pipe        */
/*      PIC_Delete_Pipe                     Delete a message pipe        */
/*      PIC_Send_To_Pipe                    Send message to a pipe       */
/*      PIC_Receive_From_Pipe               Receive a message from pipe  */
/*      PIC_Cleanup                         Cleanup on timeout or a      */
/*                                            terminate condition        */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      pi_extr.h                           Pipe functions               */
/*      hi_extr.h                           History functions            */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*          DATE                    REMARKS                              */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      08-09-1993      Corrected pointer retrieval                      */
/*                      loop, resulting in version 1.0a                  */
/*      08-09-1993      Verified version 1.0a                            */
/*      03-01-1994      Moved non-core functions into                    */
/*                      supplemental files, changed                      */
/*                      function interfaces to match                     */
/*                      those in prototype, added                        */
/*                      register options, changed                        */
/*                      protection logic to reduce                       */
/*                      overhead, corrected bug in                       */
/*                      pipe reset, optimized item                       */
/*                      copy loops, resulting in                         */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      04-17-1996      updated to version 1.2                           */
/*      03-24-1998      Released version 1.3                             */
/*      03-26-1999      Released 1.11m (new release                      */
/*                        numbering scheme)                              */
/*      04-17-2002      Released version 1.13m                           */
/*      11-07-2002      Released version 1.14                            */
/*************************************************************************/
#define         NU_SOURCE_FILE


#include        "cs_extr.h"                 /* Common service functions  */
#include        "tc_extr.h"                 /* Thread control functions  */
#include        "pi_extr.h"                 /* Pipe functions            */
#include        "hi_extr.h"                 /* History functions         */
#include        "profiler.h"                /* ProView interface         */


/* Define external inner-component global data references.  */

extern CS_NODE         *PID_Created_Pipes_List;
extern UNSIGNED         PID_Total_Pipes;
extern TC_PROTECT       PID_List_Protect;


/* Define internal component function prototypes.  */

VOID    PIC_Cleanup(VOID *information);


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PIC_Create_Pipe                                                  */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function creates a pipe and then places it on the list      */
/*      of created pipes.                                                */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*      PICE_Create_Pipe                    Error checking shell         */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      CSC_Place_On_List                   Add to node to linked-list   */
/*      [HIC_Make_History_Entry]            Make entry in history log    */
/*      [TCT_Check_Stack]                   Stack checking function      */
/*      TCT_Protect                         Data structure protect       */
/*      TCT_Unprotect                       Un-protect data structure    */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pipe_ptr                            Pipe control block pointer   */
/*      name                                Pipe name                    */
/*      start_address                       Starting address of actual   */
/*                                            pipe area                  */
/*      pipe_size                           Total size of pipe in bytes  */
/*      message_type                        Type of message supported by */
/*                                            the pipe (fixed/variable)  */
/*      message_size                        Size of message.  Variable   */
/*                                            message-length pipes, this */
/*                                            represents the maximum size*/
/*      suspend_type                        Suspension type              */
/*                                                                       */
/* 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,                          */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  PIC_Create_Pipe(NU_PIPE *pipe_ptr, CHAR *name,
                      VOID *start_address, UNSIGNED pipe_size,
                      OPTION message_type, UNSIGNED message_size,
                      OPTION suspend_type)
{

R1 PI_PCB      *pipe;                       /* Pipe control block ptr    */
INT             i;                          /* Working index variable    */
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_CREATE_PIPE_ID, (UNSIGNED) pipe,
                                (UNSIGNED) name, (UNSIGNED) start_address);

#endif

    /* First, clear the pipe ID just in case it is an old pipe
       Control Block.  */
    pipe -> pi_id =             0;

    /* Fill in the pipe name.  */
    for (i = 0; i < NU_MAX_NAME; i++)
        pipe -> pi_name[i] =  name[i];

    /* Setup the pipe suspension type.  */
    if (suspend_type == NU_FIFO)

        /* FIFO suspension is selected, setup the flag accordingly.  */
        pipe -> pi_fifo_suspend =  NU_TRUE;

    else

        /* Priority suspension is selected.  */
        pipe -> pi_fifo_suspend =  NU_FALSE;

    /* Setup the pipe message type.  */
    if (message_type == NU_FIXED_SIZE)

        /* Fixed-size messages are required.  */
        pipe -> pi_fixed_size =  NU_TRUE;
    else

        /* Variable-size messages are required.  */
        pipe -> pi_fixed_size =  NU_FALSE;

    /* Setup the message size.  */
    pipe -> pi_message_size =  message_size;

    /* Clear the messages counter.   */
    pipe -> pi_messages =  0;

    /* Setup the actual pipe pointers.  */
    pipe -> pi_pipe_size =     pipe_size;

    /* Determine if the pipe's size needs to be adjusted.  */
    if (pipe -> pi_fixed_size)

        /* The size of a fixed-size message pipe must be an even multiple of
           the actual message size.  */
        pipe_size =  (pipe_size/message_size) * message_size;

    else

        /* Insure that the size is in terms of UNSIGNED data elements.  This
           insures that the UNSIGNED word is never written past the end of
           the pipe.  */
        pipe_size =  (pipe_size/sizeof(UNSIGNED)) * sizeof(UNSIGNED);

    pipe -> pi_available =     pipe_size;
    pipe -> pi_start =         (BYTE_PTR) start_address;
    pipe -> pi_end =           pipe -> pi_start + pipe_size;
    pipe -> pi_read =          (BYTE_PTR) start_address;
    pipe -> pi_write =         (BYTE_PTR) start_address;

    /* Clear the suspension list pointer.  */
    pipe -> pi_suspension_list =  NU_NULL;

    /* Clear the number of tasks waiting on the pipe counter.  */
    pipe -> pi_tasks_waiting =  0;

    /* Clear the urgent message list pointer.  */
    pipe -> pi_urgent_list =  NU_NULL;

    /* Initialize link pointers.  */
    pipe -> pi_created.cs_previous =    NU_NULL;
    pipe -> pi_created.cs_next =        NU_NULL;

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

    /* At this point the pipe is completely built.  The ID can now be
       set and it can be linked into the created pipe list.  */
    pipe -> pi_id =                     PI_PIPE_ID;

    /* Link the pipe into the list of created pipes and increment the
       total number of pipes in the system.  */
    CSC_Place_On_List(&PID_Created_Pipes_List, &(pipe -> pi_created));
    PID_Total_Pipes++;

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

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

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

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


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PIC_Delete_Pipe                                                  */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美色一区| 成人自拍视频在线| 亚洲电影欧美电影有声小说| 国产精品美女久久久久aⅴ| 久久免费午夜影院| 2017欧美狠狠色| 国产亚洲欧美色| 欧美激情艳妇裸体舞| 国产精品国产三级国产普通话蜜臀| 国产三级一区二区| 久久久99久久| 中文字幕在线播放不卡一区| 亚洲三级久久久| 一区二区三区在线不卡| 亚洲一区二区三区四区中文字幕| 亚洲综合一区二区精品导航| 亚洲国产精品一区二区久久| 日韩国产精品久久久久久亚洲| 三级成人在线视频| 久久91精品久久久久久秒播| 国产老妇另类xxxxx| 成人黄色电影在线| 在线观看中文字幕不卡| 欧美电影在线免费观看| 欧美不卡在线视频| 国产三级欧美三级日产三级99| 国产精品欧美一级免费| 亚洲激情图片一区| 麻豆精品在线视频| 国产91精品入口| 在线日韩一区二区| 日韩精品专区在线影院重磅| 久久精品日韩一区二区三区| 自拍视频在线观看一区二区| 亚洲国产一区二区a毛片| 美腿丝袜在线亚洲一区| 懂色av一区二区三区蜜臀| 色94色欧美sute亚洲线路二| 欧美一级生活片| 国产日韩欧美电影| 午夜免费欧美电影| 国产麻豆精品久久一二三| 日本福利一区二区| 欧美大片国产精品| 亚洲欧美日韩中文字幕一区二区三区| 五月婷婷欧美视频| 国产成人自拍网| 欧美亚洲动漫另类| 国产日韩三级在线| 日韩黄色免费网站| av亚洲精华国产精华精| 欧美狂野另类xxxxoooo| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲成人免费电影| 丰满亚洲少妇av| 欧美精品 日韩| 亚洲欧洲av在线| 日本成人在线不卡视频| av一本久道久久综合久久鬼色| 欧美一区二区三区在线| 亚洲免费在线视频| 国产一区二区三区av电影 | 国产一区二区按摩在线观看| 色呦呦日韩精品| 337p日本欧洲亚洲大胆色噜噜| 亚洲一区二区三区四区在线观看| 国产精品1区二区.| 91精品国产麻豆| 一区二区三区在线观看动漫| 丁香天五香天堂综合| 日韩一级片在线播放| 一区二区三区四区激情| 成人三级伦理片| 精品国产免费一区二区三区四区| 亚洲成人av免费| 99re成人在线| 欧美国产成人精品| 久草热8精品视频在线观看| 欧美在线一区二区| 亚洲精品中文字幕在线观看| 成人免费视频app| 26uuu欧美日本| 麻豆久久一区二区| 欧美一区二区日韩| 日韩影院在线观看| 欧美日韩免费在线视频| 亚洲美女在线国产| 99re成人在线| 成人免费一区二区三区视频| a级高清视频欧美日韩| 国产欧美视频一区二区| 精品一区二区三区影院在线午夜| 91精品久久久久久久91蜜桃| 亚洲国产精品久久艾草纯爱| 欧美性猛交xxxx黑人交| 夜夜亚洲天天久久| 在线视频一区二区三区| 亚洲影视资源网| 欧美性xxxxx极品少妇| 亚洲自拍偷拍九九九| 91久久国产最好的精华液| 一区二区在线观看免费| 色妞www精品视频| 一区二区三区毛片| 欧美优质美女网站| 午夜精品aaa| 欧美一区二区网站| 玖玖九九国产精品| 欧美精品一区二区三区视频| 国产一区二区三区免费看| 国产欧美va欧美不卡在线| 国产成人av影院| 国产精品美日韩| 91一区二区在线| 一区二区三区国产精品| 欧美日韩亚洲综合在线| 蜜臀国产一区二区三区在线播放| 日韩欧美成人激情| 国内欧美视频一区二区| 国产欧美精品区一区二区三区| 成人av在线电影| 亚洲精品国产无套在线观| 欧美日韩国产一级片| 久久国产成人午夜av影院| 久久久av毛片精品| 91丨porny丨中文| 亚洲成人午夜电影| 精品国产伦一区二区三区免费 | 色婷婷精品大在线视频 | 91香蕉视频mp4| 亚洲电影欧美电影有声小说| 欧美成人一区二区三区在线观看 | 欧美裸体bbwbbwbbw| 韩国视频一区二区| 国产精品久久久久影视| 一区二区三区毛片| 麻豆国产一区二区| 在线视频中文字幕一区二区| 国产精品你懂的在线欣赏| 国内精品第一页| 一区二区三区在线播放| 久久久久亚洲综合| 久久综合成人精品亚洲另类欧美| 欧美人动与zoxxxx乱| 欧美亚洲日本国产| 欧美午夜影院一区| 欧美调教femdomvk| 欧美色网一区二区| 91精品啪在线观看国产60岁| 9191成人精品久久| 91精品国产免费久久综合| 欧美mv日韩mv亚洲| 欧美韩日一区二区三区四区| 中文字幕一区二区5566日韩| 日韩美女视频19| 亚洲不卡一区二区三区| 老司机免费视频一区二区三区| 国产一区二区三区电影在线观看| 成人免费毛片a| 欧美精品第1页| 久久精品一区蜜桃臀影院| 一区二区在线观看不卡| 美女在线一区二区| 99视频精品全部免费在线| 欧美日本一区二区在线观看| 久久综合av免费| 亚洲国产精品久久艾草纯爱| 不卡视频在线看| 最新中文字幕一区二区三区 | 欧美日韩国产首页| 欧美一区二区三区不卡| 波多野结衣一区二区三区| 日韩精品一二区| 中文字幕一区在线观看视频| 欧美丰满美乳xxx高潮www| 99国产一区二区三精品乱码| 久久成人麻豆午夜电影| 天天综合天天做天天综合| 亚洲欧美怡红院| 久久蜜桃av一区二区天堂| 欧美福利视频导航| 欧美视频一区二区三区| 99精品国产一区二区三区不卡 | 51午夜精品国产| 91久久人澡人人添人人爽欧美| 国产高清成人在线| 美女视频黄 久久| 五月天一区二区三区| 日韩毛片精品高清免费| 久久久久国产精品人| 日韩欧美高清dvd碟片| 宅男噜噜噜66一区二区66| 欧美亚洲一区二区三区四区| 91在线视频网址| 国产高清不卡二三区| 激情综合色播激情啊| 国内精品久久久久影院色 | 欧美综合欧美视频| 99久久精品国产导航| 成人h动漫精品一区二|