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

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

?? 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                                                  */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文av一区二区| 成人网在线播放| 国产传媒欧美日韩成人| 国产精品国产三级国产aⅴ入口| 欧美日韩成人激情| 国产成a人无v码亚洲福利| 午夜欧美一区二区三区在线播放| 国产精品三级久久久久三级| 日韩一级二级三级| 欧美日韩中文一区| 91激情五月电影| 成人网在线免费视频| 国产乱码精品一区二区三区五月婷| 亚洲 欧美综合在线网络| 成人免费一区二区三区在线观看| 久久久国产午夜精品| 日韩精品资源二区在线| 欧美高清激情brazzers| 91国偷自产一区二区使用方法| 成人激情图片网| 国产传媒一区在线| 国产精品1区2区3区在线观看| 日本中文一区二区三区| 日韩一区日韩二区| 国产三级一区二区三区| 久久影院午夜片一区| 欧美一级日韩一级| 欧美一区二区久久久| 欧美精品 日韩| 欧美日韩一级二级| 欧美无人高清视频在线观看| 91麻豆福利精品推荐| 91麻豆精品一区二区三区| 成人黄色软件下载| hitomi一区二区三区精品| 成人激情小说乱人伦| 成人高清伦理免费影院在线观看| 成人性生交大合| 成人午夜在线视频| 91在线精品一区二区三区| jiyouzz国产精品久久| 91性感美女视频| 91麻豆自制传媒国产之光| 色噜噜狠狠一区二区三区果冻| 一本到一区二区三区| 色狠狠色狠狠综合| 欧美日韩一二三区| 日韩欧美在线123| 337p日本欧洲亚洲大胆色噜噜| 久久久久久影视| 欧美国产日韩a欧美在线观看| 国产精品萝li| 一区二区三区中文字幕电影| 亚洲妇女屁股眼交7| 婷婷久久综合九色综合伊人色| 免费观看91视频大全| 国产一区高清在线| av在线不卡免费看| 欧美性猛交xxxxxx富婆| 欧美一区二区三区免费观看视频 | 免费高清在线视频一区·| 日产欧产美韩系列久久99| 国产一区二区三区精品欧美日韩一区二区三区| 久久国产福利国产秒拍| 国产成人av电影在线| 色综合激情五月| 欧美一区二区免费| 国产精品你懂的在线欣赏| 亚洲成人久久影院| 国产乱色国产精品免费视频| 91亚洲精品乱码久久久久久蜜桃 | 日韩精品一区二区三区蜜臀 | 国产一区二区三区蝌蚪| 99久久精品国产观看| 欧美亚洲综合一区| 久久综合九色综合欧美98| 亚洲视频你懂的| 日韩成人伦理电影在线观看| 国产成人精品免费看| 欧美丝袜丝nylons| 国产视频亚洲色图| 亚洲成a人片综合在线| 国产高清不卡二三区| 欧美在线一区二区三区| 久久只精品国产| 亚洲一区二区成人在线观看| 国产一区二区三区观看| 在线视频中文字幕一区二区| 久久久久久麻豆| 午夜伦欧美伦电影理论片| 成人蜜臀av电影| 日韩欧美久久久| 亚洲乱码精品一二三四区日韩在线 | 在线精品观看国产| 久久久久久久久久电影| 午夜精品视频一区| 97se亚洲国产综合自在线不卡| 日韩欧美中文一区二区| 亚洲一区二区三区爽爽爽爽爽 | 亚洲午夜激情av| 国产sm精品调教视频网站| 欧美一区二区三区四区久久 | 五月天欧美精品| av影院午夜一区| 精品国产123| 婷婷开心激情综合| 欧美在线观看一区| ...av二区三区久久精品| 国产在线精品一区二区夜色 | 久久久久久久久久久黄色 | 91麻豆蜜桃一区二区三区| 久久精品人人做人人爽人人| 蜜臀精品久久久久久蜜臀| 欧美丰满美乳xxx高潮www| 一区二区理论电影在线观看| 成人黄色综合网站| 欧美韩日一区二区三区四区| 裸体健美xxxx欧美裸体表演| 欧美日产在线观看| 午夜激情一区二区| 欧美午夜精品免费| 亚洲电影一区二区三区| 色婷婷狠狠综合| 亚洲欧美一区二区三区孕妇| 成人app网站| 亚洲欧洲精品一区二区三区| 粉嫩一区二区三区性色av| 久久久久久久久伊人| 韩国精品主播一区二区在线观看| 欧美一级理论片| 久久精品国产77777蜜臀| 日韩欧美国产系列| 精品影视av免费| 国产性色一区二区| 国产99精品国产| 国产精品高清亚洲| 99精品欧美一区二区三区综合在线| 中文字幕精品一区二区三区精品| 成人精品免费看| 中文字幕日本乱码精品影院| 99久久99久久综合| 亚洲黄色小说网站| 欧美精品tushy高清| 日日夜夜免费精品视频| 日韩欧美中文字幕一区| 国产伦精一区二区三区| 国产精品视频观看| 色欧美日韩亚洲| 五月婷婷色综合| 欧美xxx久久| 懂色av噜噜一区二区三区av| 亚洲图片你懂的| 欧美日韩一级二级三级| 麻豆久久久久久久| 国产欧美日本一区二区三区| 91蜜桃传媒精品久久久一区二区| 一区二区三区久久久| 欧美一区二区成人| 国产福利精品导航| 亚洲男帅同性gay1069| 欧美理论在线播放| 国内精品免费在线观看| 国产精品成人网| 欧美日韩高清一区二区| 韩国三级在线一区| 亚洲欧美日韩成人高清在线一区| 欧美日韩国产综合一区二区三区| 美国毛片一区二区三区| 国产精品久久久久天堂| 欧美日韩免费一区二区三区| 精品一区二区三区免费视频| 亚洲天堂免费看| 91精品国产91综合久久蜜臀| 懂色av中文字幕一区二区三区| 亚洲成人一区二区| 国产日韩成人精品| 欧美日韩视频在线观看一区二区三区| 国产一区二区在线视频| 亚洲精品视频在线看| 欧美不卡视频一区| 91福利精品第一导航| 国产一区二区网址| 亚洲一区二区3| 国产日韩欧美在线一区| 欧美喷潮久久久xxxxx| 成人av在线播放网址| 蜜臂av日日欢夜夜爽一区| 一色屋精品亚洲香蕉网站| 日韩美一区二区三区| 色婷婷久久99综合精品jk白丝| 久久99精品国产麻豆不卡| 亚洲一区二区三区四区不卡| 国产欧美日韩在线| 欧美一区二区三区成人| 91蝌蚪porny成人天涯| 国产米奇在线777精品观看| 五月激情丁香一区二区三区| 亚洲欧洲av一区二区三区久久| 欧美成人高清电影在线| 欧美日韩精品欧美日韩精品|