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

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

?? pice.c

?? 不可多得Nucleus plus的源代碼程序
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*************************************************************************/
/*                                                                       */
/*        Copyright (c) 1993-1996 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.2        */
/*                                                                       */
/* 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                                                                */
/*                                                                       */
/*      William E. Lamie, 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                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*      W. Lamie        03-01-1993      Created initial version 1.0      */
/*      D. Lamie        04-19-1993      Verified version 1.0             */
/*      W. Lamie        03-01-1994      Split original error checking    */
/*                                        file and changed function      */
/*                                        interfaces, resulting in       */
/*                                        version 1.1                    */
/*      R. Pfaff -                                                       */
/*      D. Lamie        03-18-1994      Verified version 1.1             */
/*	M. Trippi	12-19-1995	Modified PICE_Receive_From_Pipe, */
/*					  resulting in version 1.1+      */
/*					  (spr065)                       */
/*      M.Q. Qian       04-17-1996      updated to version 1.2           */
/*                                                                       */
/*************************************************************************/
#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                                                                */
/*                                                                       */
/*      William E. Lamie, 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                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*      W. Lamie        03-01-1993      Created initial version 1.0      */
/*      D. Lamie        04-19-1993      Verified version 1.0             */
/*      W. Lamie        03-01-1994      Modified function interface,     */
/*                                        resulting in version 1.1       */
/*      R. Pfaff -                                                       */
/*      D. Lamie        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                                                                */
/*                                                                       */
/*      William E. Lamie, 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                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*      W. Lamie        03-01-1993      Created initial version 1.0      */
/*      D. Lamie        04-19-1993      Verified version 1.0             */
/*      W. Lamie        03-01-1994      Modified function interface,     */
/*                                        resulting in version 1.1       */
/*      R. Pfaff -                                                       */
/*      D. Lamie        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一区二区三区免费野_久草精品视频
亚洲国产精品欧美一二99| 日本色综合中文字幕| 亚洲一线二线三线视频| 久久精品国产亚洲aⅴ| 成人av网在线| 91精品国产一区二区三区| 国产精品三级视频| 日韩va亚洲va欧美va久久| 不卡的av网站| 日韩精品影音先锋| 午夜a成v人精品| 成人h动漫精品一区二| 欧美成人三级电影在线| 亚洲精品中文字幕在线观看| 国产精品一区二区男女羞羞无遮挡| 欧美日韩成人在线一区| 国产精品久久久久久久久免费桃花 | 欧美最猛性xxxxx直播| 久久久亚洲精品石原莉奈| 亚洲国产日韩在线一区模特| 99精品欧美一区二区三区综合在线| 日韩一区二区在线看片| 午夜精品视频一区| 在线精品视频免费观看| 亚洲人成影院在线观看| 成人性生交大片| 久久久久国产成人精品亚洲午夜| 美女mm1313爽爽久久久蜜臀| 欧美日韩视频在线第一区| 亚洲精品自拍动漫在线| 99精品1区2区| 亚洲色图欧美偷拍| 色综合天天综合| 1024成人网色www| 99国产精品久久久久久久久久久| 国产精品乱码妇女bbbb| www.久久久久久久久| 国产精品丝袜在线| 波多野洁衣一区| 中文字幕中文字幕在线一区 | 99精品国产视频| 中文字幕日韩欧美一区二区三区| 成人听书哪个软件好| 国产女人aaa级久久久级| 国产在线精品一区二区三区不卡| 久久婷婷成人综合色| 国产一区二区0| 欧美激情综合网| 波多野结衣中文一区| 亚洲视频你懂的| 91豆麻精品91久久久久久| 亚洲国产成人91porn| 日韩女优毛片在线| 国产在线精品一区二区不卡了| 久久理论电影网| 99久免费精品视频在线观看| 一区二区视频在线| 91精品国产综合久久婷婷香蕉 | 91精品国产美女浴室洗澡无遮挡| 肉丝袜脚交视频一区二区| 日韩免费成人网| 高清日韩电视剧大全免费| 日韩伦理av电影| 欧美午夜精品久久久久久超碰| 日欧美一区二区| 久久久久久9999| 日本道精品一区二区三区| 日本午夜精品一区二区三区电影 | 欧美性大战久久| 久久精品国产99久久6| 国产精品久久久久三级| 欧美亚洲日本国产| 国产一区二区三区免费播放| 亚洲欧美另类小说| 精品少妇一区二区三区在线播放| 懂色av一区二区夜夜嗨| 香蕉久久一区二区不卡无毒影院 | 91精品国产91久久久久久最新毛片| 免费看日韩a级影片| 国产精品天干天干在观线| 欧美日韩的一区二区| 岛国精品一区二区| 午夜精品久久久久久久99水蜜桃 | 丁香另类激情小说| 丝袜亚洲另类欧美| 日韩美女视频19| 精品毛片乱码1区2区3区| 日本二三区不卡| 国产成人精品免费视频网站| 天天色天天操综合| 亚洲黄色性网站| 久久九九影视网| 欧美一区二区美女| 在线观看日韩高清av| 国产成人鲁色资源国产91色综 | 国产精品456| 日韩二区三区四区| 一区二区三区欧美| 国产精品网站在线播放| 精品国产91亚洲一区二区三区婷婷| 在线精品视频一区二区| av电影在线观看不卡| 国产精品综合在线视频| 美国精品在线观看| 香蕉成人啪国产精品视频综合网| 中文字幕在线观看一区| 国产亚洲欧美中文| 久久综合久久久久88| 5566中文字幕一区二区电影| 在线观看亚洲专区| 色综合久久久久| 99精品国产99久久久久久白柏| 国产成人精品免费网站| 国产成人精品三级麻豆| 国产精品一区免费在线观看| 美女视频黄频大全不卡视频在线播放| 亚洲成人www| 亚洲无线码一区二区三区| 一级特黄大欧美久久久| 亚洲视频综合在线| 亚洲精品久久嫩草网站秘色| 亚洲精品亚洲人成人网在线播放| 国产精品家庭影院| 亚洲视频一区二区在线观看| 亚洲欧美自拍偷拍色图| 国产精品久久久久久久久动漫 | 精品国产91乱码一区二区三区 | 不卡的av网站| 色综合色狠狠天天综合色| 91免费在线视频观看| 欧美怡红院视频| 欧美日韩视频一区二区| 日韩三级免费观看| 久久久综合九色合综国产精品| 久久青草国产手机看片福利盒子 | 日韩欧美国产电影| 久久亚洲私人国产精品va媚药| 久久久国产午夜精品| 国产精品久久久爽爽爽麻豆色哟哟| 国产精品久久午夜夜伦鲁鲁| 一区二区三区久久| 日日摸夜夜添夜夜添国产精品 | 艳妇臀荡乳欲伦亚洲一区| 亚洲国产综合在线| 久久99国产精品久久99果冻传媒| 蜜桃91丨九色丨蝌蚪91桃色| 国产成人精品www牛牛影视| kk眼镜猥琐国模调教系列一区二区 | 制服.丝袜.亚洲.另类.中文| 91精品国产一区二区人妖| 国产午夜精品理论片a级大结局 | 天天做天天摸天天爽国产一区| 日韩av网站在线观看| 成人一区二区在线观看| 在线观看国产一区二区| 7777女厕盗摄久久久| 欧美国产精品一区二区三区| 亚洲综合色婷婷| 国产一区二区免费在线| 欧美专区日韩专区| 精品久久久久久亚洲综合网 | 日韩极品在线观看| 岛国av在线一区| 91麻豆精品91久久久久同性| 国产精品情趣视频| 蜜臀av性久久久久蜜臀av麻豆| 91一区二区三区在线观看| 欧美一级日韩免费不卡| 亚洲人成在线观看一区二区| 精品一区二区免费| 色偷偷久久一区二区三区| 久久午夜羞羞影院免费观看| 亚洲国产日韩精品| 成人精品视频一区| 久久午夜电影网| 天天色天天操综合| 色国产综合视频| 中文字幕乱码一区二区免费| 美国十次综合导航| 欧美剧在线免费观看网站| 国产精品成人网| 国产精品一区二区在线观看网站 | 强制捆绑调教一区二区| 色琪琪一区二区三区亚洲区| 国产精品天干天干在观线| 久88久久88久久久| 欧美一区永久视频免费观看| 一区二区三区毛片| 91美女精品福利| 国产精品成人免费| 成人午夜在线视频| 国产亚洲欧美在线| 国产成人综合在线| 精品国产不卡一区二区三区| 免费成人美女在线观看| 欧美人与z0zoxxxx视频| 亚洲成人你懂的| 色成人在线视频| 亚洲欧美日韩人成在线播放| 成人18视频日本|