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

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

?? pice.c

?? NUCLEUS 嵌入式操作系統源代碼!用的很多
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*************************************************************************/
/*                                                                       */
/*        Copyright (c) 1993-2001 Accelerated Technology, Inc.           */
/*                                                                       */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the      */
/* subject matter of this material.  All manufacturing, reproduction,    */
/* use, and sales rights pertaining to this subject matter are governed  */
/* by the license agreement.  The recipient of this software implicitly  */
/* accepts the terms of the license.                                     */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                            VERSION          */
/*                                                                       */
/*      pice.c                                          PLUS  1.13       */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      PI - Pipe Management                                             */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file contains error checking routines for core functions    */
/*      of the Pipe component.  This permits easy removal of error       */
/*      checking logic when it is not needed.                            */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Accelerated Technology, Inc.                                     */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      PICE_Create_Pipe                    Create a pipe                */
/*      PICE_Delete_Pipe                    Delete a pipe                */
/*      PICE_Send_To_Pipe                   Send a pipe message          */
/*      PICE_Receive_From_Pipe              Receive a pipe message       */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      cs_extr.h                           Common Service functions     */
/*      tc_extr.h                           Thread Control functions     */
/*      pi_extr.h                           Pipe functions               */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Split original error checking                    */
/*                      file and changed function                        */
/*                      interfaces, resulting in                         */
/*                      version 1.1                                      */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*      12-19-1995      Modified PICE_Receive_From_Pipe,                 */
/*                      resulting in version 1.1+                        */
/*                      (spr065)                                         */
/*      04-17-1996      updated to version 1.2                           */
/*      03-24-1998      Released version 1.3                             */
/*      06-04-1998      Modified PICE_Send_To_Pipe to                    */
/*                      check for a size of 0, created                   */
/*                      version 1.3a. (SPR493)                           */
/*                                                                       */
/*************************************************************************/
#include"switch.h"
#if   NU_PIPE_EN

#define         NU_SOURCE_FILE


#include        "cs_extr.h"                 /* Common service functions  */
#include        "tc_extr.h"                 /* Thread control functions  */
#include        "pi_extr.h"                 /* Pipe functions            */


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PICE_Create_Pipe                                                 */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function performs error checking on the parameters supplied */
/*      to the pipe create function.                                     */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Accelerated Technology, Inc.                                     */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      PIC_Create_Pipe                     Actual create pipe function  */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pipe_ptr                            Pipe control block pointer   */
/*      name                                Pipe name                    */
/*      start_address                       Starting address of actual   */
/*                                            pipe area                  */
/*      pipe_size                           Total size of pipe           */
/*      message_type                        Type of message supported by */
/*                                            the pipe (fixed/variable)  */
/*      message_size                        Size of message.  Variable   */
/*                                            message-length queues, this*/
/*                                            represents the maximum size*/
/*      suspend_type                        Suspension type              */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_INVALID_PIPE                     Invalid pipe pointer         */
/*      NU_INVALID_MEMORY                   Invalid pipe starting addr   */
/*      NU_INVALID_SIZE                     Invalid pipe size and/or     */
/*                                            size of message            */
/*      NU_INVALID_MESSAGE                  Invalid message type         */
/*      NU_INVALID_SUSPEND                  Invalid suspend type         */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*        DATE                    REMARKS                                */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified function interface,                     */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  PICE_Create_Pipe(NU_PIPE *pipe_ptr, CHAR *name, 
                      VOID *start_address, UNSIGNED pipe_size, 
                      OPTION message_type, UNSIGNED message_size,
                      OPTION suspend_type)
{

PI_PCB         *pipe;
STATUS          status;
UNSIGNED        overhead;


    /* Move input pipe pointer into internal pointer.  */
    pipe =  (PI_PCB *) pipe_ptr;


    /* Determine if pipe supports variable length messages.  If so, 
           additional bytes of overhead are required.  */
    if (message_type == NU_VARIABLE_SIZE)

        /* Calculate the number of overhead bytes necessary for the additional
           word of overhead and the pad-bytes required to keep the pipe
           write pointer on an UNSIGNED data element alignment.  */
        overhead =  sizeof(UNSIGNED) +
                (((message_size + sizeof(UNSIGNED) - 1)/sizeof(UNSIGNED)) * 
                        sizeof(UNSIGNED)) - message_size;

    else
    
        /* Fixed-size message queues require no additional overhead.  */
        overhead =  0;


    	/* Determine if there is an error with the pipe pointer.  */
    if ((pipe == NU_NULL) || (pipe -> pi_id == PI_PIPE_ID))
    
        /* Indicate that the pipe pointer is invalid.  */
        status =  NU_INVALID_PIPE;
        
    else if (start_address == NU_NULL)
    
        /* Indicate that the starting address of the pipe is invalid.  */
        status =  NU_INVALID_MEMORY;
        
    else if ((pipe_size == 0) || (message_size == 0) || 
                                ((message_size + overhead) > pipe_size))
             
        /* Indicate that one or both of the size parameters are invalid.  */
        status =  NU_INVALID_SIZE;
        
    else if ((message_type != NU_FIXED_SIZE) && 
                        (message_type != NU_VARIABLE_SIZE))
                                
        /* Indicate that the message type is invalid.  */
        status =  NU_INVALID_MESSAGE;
        
    else if ((suspend_type != NU_FIFO) && (suspend_type != NU_PRIORITY))
    
        /* Indicate that the suspend type is invalid.  */
        status =  NU_INVALID_SUSPEND;
        
    else
    
        /* All the parameters are okay, call the actual function to create
           a pipe.  */
        status =  PIC_Create_Pipe(pipe_ptr, name, start_address, pipe_size, 
                                  message_type, message_size, suspend_type);
                                  
    /* Return completion status.  */
    return(status);
}


/*************************************************************************/
/*                                                                       */
/* FUNCTION                                                              */
/*                                                                       */
/*      PICE_Delete_Pipe                                                 */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This function performs error checking on the parameter supplied  */
/*      to the pipe delete function.                                     */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Accelerated Technology, Inc.                                     */
/*                                                                       */
/* CALLED BY                                                             */
/*                                                                       */
/*      Application                                                      */
/*                                                                       */
/* CALLS                                                                 */
/*                                                                       */
/*      PIC_Delete_Pipe                     Actual delete pipe function  */
/*                                                                       */
/* INPUTS                                                                */
/*                                                                       */
/*      pipe_ptr                            Pipe control block pointer   */
/*                                                                       */
/* OUTPUTS                                                               */
/*                                                                       */
/*      NU_INVALID_PIPE                     Invalid pipe pointer         */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         DATE                    REMARKS                               */
/*                                                                       */
/*      03-01-1993      Created initial version 1.0                      */
/*      04-19-1993      Verified version 1.0                             */
/*      03-01-1994      Modified function interface,                     */
/*                      resulting in version 1.1                         */
/*                                                                       */
/*      03-18-1994      Verified version 1.1                             */
/*                                                                       */
/*************************************************************************/
STATUS  PICE_Delete_Pipe(NU_PIPE *pipe_ptr)
{

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品中文有码| 麻豆国产精品一区二区三区 | 欧美精品一二三| 91视频在线观看| 91在线国产观看| 91久久精品一区二区| 日本精品一区二区三区高清| 色8久久人人97超碰香蕉987| 欧洲色大大久久| 欧美一卡二卡在线| 精品sm在线观看| 国产人成亚洲第一网站在线播放| 中文字幕av在线一区二区三区| 亚洲国产精品成人综合色在线婷婷| 国产精品污污网站在线观看| 亚洲美女视频在线观看| 午夜精品在线视频一区| 久久99国产精品免费| 国产精品亚洲午夜一区二区三区 | 美女诱惑一区二区| 九色|91porny| 94-欧美-setu| 日韩一区二区在线看| 久久久久久久久久久久久久久99| 国产精品国产三级国产aⅴ中文| 亚洲免费在线视频一区 二区| 午夜视频在线观看一区二区| 激情小说亚洲一区| 色偷偷成人一区二区三区91| 欧美电影在线免费观看| 久久久久久**毛片大全| 亚洲激情图片小说视频| 精一区二区三区| 色婷婷久久久久swag精品| 欧美性高清videossexo| 2023国产精品| 三级亚洲高清视频| bt欧美亚洲午夜电影天堂| 91精品欧美久久久久久动漫 | 欧美日韩国产首页在线观看| 久久这里只精品最新地址| 亚洲精品五月天| 国产伦精品一区二区三区在线观看| 91丨九色丨国产丨porny| 日韩欧美在线影院| 夜夜嗨av一区二区三区中文字幕| 精品亚洲aⅴ乱码一区二区三区| 91麻豆国产在线观看| 26uuu另类欧美亚洲曰本| 亚洲一区视频在线观看视频| 国产成人精品在线看| 欧美片在线播放| 亚洲日本丝袜连裤袜办公室| 国产一区二区三区四| 欧美高清激情brazzers| 亚洲日本在线a| 欧美妇女性影城| 亚洲日本韩国一区| 午夜欧美电影在线观看| 国产麻豆91精品| 日韩欧美国产一二三区| 日本亚洲欧美天堂免费| 欧美中文字幕一二三区视频| 亚洲人成小说网站色在线| 国产精品一区三区| 日韩免费看的电影| 美腿丝袜一区二区三区| 欧美一级xxx| 美女一区二区久久| 欧美一三区三区四区免费在线看 | 欧美一区二区三区视频在线 | 亚洲午夜精品一区二区三区他趣| 99久久免费视频.com| 欧美激情中文字幕一区二区| 高清久久久久久| 国产欧美日韩另类视频免费观看| 国产很黄免费观看久久| 2020国产精品自拍| 国产91对白在线观看九色| 久久精品欧美日韩| 粉嫩av一区二区三区| 国产精品理论片| 色婷婷av一区二区三区软件| 亚洲精品成人少妇| 欧美视频在线一区| 日韩av一级电影| 日韩精品一区二区三区三区免费| 日本午夜一区二区| 欧美精品一区二区久久婷婷| 韩国精品免费视频| 国产精品美女www爽爽爽| 一本久道中文字幕精品亚洲嫩| 亚洲天堂2014| 欧美精品日韩一本| 国产综合久久久久影院| 欧美激情一区二区三区在线| 92精品国产成人观看免费| 亚洲电影你懂得| 久久免费午夜影院| 99精品一区二区三区| 午夜精品免费在线| 久久婷婷成人综合色| 色哟哟亚洲精品| 国模大尺度一区二区三区| 中文字幕五月欧美| 欧美一区二区三区啪啪| 成人免费毛片嘿嘿连载视频| 亚洲综合区在线| 亚洲精品在线网站| 色婷婷久久99综合精品jk白丝| 三级不卡在线观看| 国产精品不卡在线观看| 69久久夜色精品国产69蝌蚪网| 国产精品一区二区男女羞羞无遮挡| 一区二区三区中文字幕电影| 91精品在线观看入口| 99久久精品99国产精品 | 国产午夜一区二区三区| 色狠狠综合天天综合综合| 国内精品免费**视频| 亚洲午夜精品在线| 国产精品美女久久久久久久久| 欧美日韩高清一区二区不卡| 福利91精品一区二区三区| 日韩在线一区二区| 亚洲免费视频成人| 日本一区二区三级电影在线观看 | 亚洲人吸女人奶水| 久久久久久日产精品| 欧美一二三在线| 欧美喷潮久久久xxxxx| 91美女在线视频| 国产999精品久久久久久绿帽| 蜜臀久久99精品久久久画质超高清 | 亚洲国产视频网站| 亚洲图片欧美激情| 欧美激情中文不卡| 国产三级久久久| 精品国内片67194| 欧美一级片免费看| 欧美久久免费观看| 欧美日韩精品福利| 欧美日韩一级大片网址| 色综合中文字幕国产 | 亚洲色图一区二区三区| 久久精品一区四区| 久久夜色精品国产噜噜av| 日韩欧美国产精品| 精品美女一区二区| 久久青草欧美一区二区三区| 日韩欧美亚洲国产另类| 日韩视频中午一区| 欧美xxxx老人做受| 欧美va在线播放| 精品久久一二三区| 国产亚洲一区二区三区在线观看| 久久亚洲综合色一区二区三区| 久久久久久久电影| 欧美韩国日本不卡| 亚洲美女淫视频| 首页国产欧美日韩丝袜| 美女性感视频久久| 国产成人精品综合在线观看| 懂色av一区二区三区蜜臀| 波多野结衣中文字幕一区二区三区| 成人av在线观| 91福利在线导航| 日韩色在线观看| 2019国产精品| 亚洲色图视频免费播放| 五月婷婷综合在线| 精品一区二区成人精品| 丁香天五香天堂综合| 欧洲视频一区二区| 精品久久五月天| 综合亚洲深深色噜噜狠狠网站| 一卡二卡三卡日韩欧美| 日韩成人午夜电影| 国产精品996| 欧美亚洲图片小说| ww久久中文字幕| 亚洲蜜臀av乱码久久精品蜜桃| 奇米亚洲午夜久久精品| 国产91高潮流白浆在线麻豆| 在线精品国精品国产尤物884a| 日韩欧美在线综合网| 中文字幕一区在线| 日本不卡在线视频| 成人av高清在线| 欧美一卡2卡三卡4卡5免费| 国产精品成人免费在线| 日日摸夜夜添夜夜添亚洲女人| 国产成人免费网站| 欧美乱熟臀69xxxxxx| 国产精品区一区二区三| 日韩高清一级片| 成人18视频在线播放| 日韩欧美高清在线| 亚洲精品国产精品乱码不99| 国产麻豆精品久久一二三|