您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ AslAbort函数代码示例

51自学网 2021-06-01 19:47:39
  C++
这篇教程C++ AslAbort函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中AslAbort函数的典型用法代码示例。如果您正苦于以下问题:C++ AslAbort函数的具体用法?C++ AslAbort怎么用?C++ AslAbort使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了AslAbort函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: FlWriteFile

voidFlWriteFile (    UINT32                  FileId,    void                    *Buffer,    UINT32                  Length){    UINT32                  Actual;    /* Write and check for error */    Actual = fwrite ((char *) Buffer, 1, Length, Gbl_Files[FileId].Handle);    if (Actual != Length)    {        FlFileError (FileId, ASL_MSG_WRITE);        AslAbort ();    }    if ((FileId == ASL_FILE_PREPROCESSOR) && Gbl_PreprocessorOutputFlag)    {        /* Duplicate the output to the user preprocessor (.i) file */        Actual = fwrite ((char *) Buffer, 1, Length,            Gbl_Files[ASL_FILE_PREPROCESSOR_USER].Handle);        if (Actual != Length)        {            FlFileError (FileId, ASL_MSG_WRITE);            AslAbort ();        }    }}
开发者ID:malattia,项目名称:acpica-tools,代码行数:31,


示例2: AslCoreSubsystemError

voidAslCoreSubsystemError (    ACPI_PARSE_OBJECT       *Op,    ACPI_STATUS             Status,    char                    *ExtraMessage,    BOOLEAN                 Abort){    sprintf (MsgBuffer, "%s %s", AcpiFormatException (Status), ExtraMessage);    if (Op)    {        AslCommonError (ASL_ERROR, ASL_MSG_CORE_EXCEPTION, Op->Asl.LineNumber,                        Op->Asl.LogicalLineNumber,                        Op->Asl.LogicalByteOffset,                        Op->Asl.Column,                        Op->Asl.Filename, MsgBuffer);    }    else    {        AslCommonError (ASL_ERROR, ASL_MSG_CORE_EXCEPTION, 0,                        0, 0, 0, NULL, MsgBuffer);    }    if (Abort)    {        AslAbort ();    }}
开发者ID:99corps,项目名称:runtime,代码行数:29,


示例3: LsAmlListingWalk

static ACPI_STATUSLsAmlListingWalk (    ACPI_PARSE_OBJECT       *Op,    UINT32                  Level,    void                    *Context){    UINT8                   FileByte;    UINT32                  i;    UINT32                  FileId = (UINT32) ACPI_TO_INTEGER (Context);    LsWriteNodeToListing (Op, FileId);    if (Op->Asl.CompileFlags & NODE_IS_RESOURCE_DATA)    {        /* Buffer is a resource template, don't dump the data all at once */        return (AE_OK);    }    /* Write the hex bytes to the listing file(s) (if requested) */    for (i = 0; i < Op->Asl.FinalAmlLength; i++)    {        if (ACPI_FAILURE (FlReadFile (ASL_FILE_AML_OUTPUT, &FileByte, 1)))        {            FlFileError (ASL_FILE_AML_OUTPUT, ASL_MSG_READ);            AslAbort ();        }        LsWriteListingHexBytes (&FileByte, 1, FileId);    }    return (AE_OK);}
开发者ID:oza,项目名称:FreeBSD-7.3-dyntick,代码行数:34,


示例4: FlReadFile

ACPI_STATUSFlReadFile (    UINT32                  FileId,    void                    *Buffer,    UINT32                  Length){    UINT32                  Actual;    /* Read and check for error */    Actual = fread (Buffer, 1, Length, Gbl_Files[FileId].Handle);    if (Actual < Length)    {        if (feof (Gbl_Files[FileId].Handle))        {            /* End-of-file, just return error */            return (AE_ERROR);        }        FlFileError (FileId, ASL_MSG_READ);        AslAbort ();    }    return (AE_OK);}
开发者ID:malattia,项目名称:acpica-tools,代码行数:27,


示例5: FlPrintFile

voidFlPrintFile (    UINT32                  FileId,    char                    *Format,    ...){    INT32                   Actual;    va_list                 Args;    va_start (Args, Format);    Actual = vfprintf (Gbl_Files[FileId].Handle, Format, Args);    va_end (Args);    if (Actual == -1)    {        FlFileError (FileId, ASL_MSG_WRITE);        AslAbort ();    }    if ((FileId == ASL_FILE_PREPROCESSOR) &&        Gbl_PreprocessorOutputFlag)    {        /*         * Duplicate the output to the user preprocessor (.i) file,         * except: no #line directives.         */        if (!strncmp (Format, "#line", 5))        {            return;        }        va_start (Args, Format);        Actual = vfprintf (Gbl_Files[ASL_FILE_PREPROCESSOR_USER].Handle,            Format, Args);        va_end (Args);        if (Actual == -1)        {            FlFileError (FileId, ASL_MSG_WRITE);            AslAbort ();        }    }}
开发者ID:malattia,项目名称:acpica-tools,代码行数:44,


示例6: UtExpandLineBuffers

voidUtExpandLineBuffers (    void){    UINT32                  NewSize;    /* Attempt to double the size of all line buffers */    NewSize = Gbl_LineBufferSize * 2;    if (Gbl_CurrentLineBuffer)    {        DbgPrint (ASL_DEBUG_OUTPUT,            "Increasing line buffer size from %u to %u/n",            Gbl_LineBufferSize, NewSize);    }    Gbl_CurrentLineBuffer = realloc (Gbl_CurrentLineBuffer, NewSize);    Gbl_LineBufPtr = Gbl_CurrentLineBuffer;    if (!Gbl_CurrentLineBuffer)    {        goto ErrorExit;    }    Gbl_MainTokenBuffer = realloc (Gbl_MainTokenBuffer, NewSize);    if (!Gbl_MainTokenBuffer)    {        goto ErrorExit;    }    Gbl_MacroTokenBuffer = realloc (Gbl_MacroTokenBuffer, NewSize);    if (!Gbl_MacroTokenBuffer)    {        goto ErrorExit;    }    Gbl_ExpressionTokenBuffer = realloc (Gbl_ExpressionTokenBuffer, NewSize);    if (!Gbl_ExpressionTokenBuffer)    {        goto ErrorExit;    }    Gbl_LineBufferSize = NewSize;    return;    /* On error above, simply issue error messages and abort, cannot continue */ErrorExit:    printf ("Could not increase line buffer size from %u to %u/n",        Gbl_LineBufferSize, Gbl_LineBufferSize * 2);    AslError (ASL_ERROR, ASL_MSG_BUFFER_ALLOCATION,        NULL, NULL);    AslAbort ();}
开发者ID:cailianchun,项目名称:acpica,代码行数:56,


示例7: FlGetFileSize

UINT32FlGetFileSize (    UINT32                  FileId){    UINT32                  FileSize;    FileSize = CmGetFileSize (Gbl_Files[FileId].Handle);    if (FileSize == ACPI_UINT32_MAX)    {        AslAbort();    }    return (FileSize);}
开发者ID:malattia,项目名称:acpica-tools,代码行数:15,


示例8: FlSeekFile

voidFlSeekFile (    UINT32                  FileId,    long                    Offset){    int                     Error;    Error = fseek (Gbl_Files[FileId].Handle, Offset, SEEK_SET);    if (Error)    {        FlFileError (FileId, ASL_MSG_SEEK);        AslAbort ();    }}
开发者ID:malattia,项目名称:acpica-tools,代码行数:15,


示例9: HxReadAmlOutputFile

static UINT32HxReadAmlOutputFile (    UINT8                   *Buffer){    UINT32                  Actual;    Actual = fread (Buffer, 1, HEX_TABLE_LINE_SIZE,        Gbl_Files[ASL_FILE_AML_OUTPUT].Handle);    if (ferror (Gbl_Files[ASL_FILE_AML_OUTPUT].Handle))    {        FlFileError (ASL_FILE_AML_OUTPUT, ASL_MSG_READ);        AslAbort ();    }    return (Actual);}
开发者ID:eyberg,项目名称:rumpkernel-netbsd-src,代码行数:18,


示例10: FlWriteFile

voidFlWriteFile (    UINT32                  FileId,    void                    *Buffer,    UINT32                  Length){    UINT32                  Actual;    /* Write and check for error */    Actual = fwrite ((char *) Buffer, 1, Length, Gbl_Files[FileId].Handle);    if (Actual != Length)    {        FlFileError (FileId, ASL_MSG_WRITE);        AslAbort ();    }}
开发者ID:AhmadTux,项目名称:DragonFlyBSD,代码行数:18,


示例11: DtOutputBinary

voidDtOutputBinary (    DT_SUBTABLE             *RootTable){    if (!RootTable)    {        return;    }    /* Walk the entire parse tree, emitting the binary data */    DtWalkTableTree (RootTable, DtWriteBinary, NULL, NULL);    Gbl_TableLength = CmGetFileSize (Gbl_Files[ASL_FILE_AML_OUTPUT].Handle);    if (Gbl_TableLength == ACPI_UINT32_MAX)    {        AslAbort ();    }}
开发者ID:Lxg1582,项目名称:freebsd,代码行数:20,


示例12: FlPrintFile

voidFlPrintFile (    UINT32                  FileId,    char                    *Format,    ...){    INT32                   Actual;    va_list                 Args;    va_start (Args, Format);    Actual = vfprintf (Gbl_Files[FileId].Handle, Format, Args);    va_end (Args);    if (Actual == -1)    {        FlFileError (FileId, ASL_MSG_WRITE);        AslAbort ();    }}
开发者ID:AhmadTux,项目名称:DragonFlyBSD,代码行数:21,


示例13: FlCloseFile

voidFlCloseFile (    UINT32                  FileId){    int                     Error;    if (!Gbl_Files[FileId].Handle)    {        return;    }    Error = fclose (Gbl_Files[FileId].Handle);    if (Error)    {        FlFileError (FileId, ASL_MSG_CLOSE);        AslAbort ();    }    /* Do not clear/free the filename string */    Gbl_Files[FileId].Handle = NULL;    return;}
开发者ID:malattia,项目名称:acpica-tools,代码行数:24,


示例14: AcpiDmGetExternalsFromFile

voidAcpiDmGetExternalsFromFile (    void){    FILE                    *ExternalRefFile;    char                    *Token;    char                    *MethodName;    UINT32                  ArgCount;    UINT32                  ImportCount = 0;    if (!Gbl_ExternalRefFilename)    {        return;    }    /* Open the file */    ExternalRefFile = fopen (Gbl_ExternalRefFilename, "r");    if (!ExternalRefFile)    {        fprintf (stderr, "Could not open external reference file /"%s/"/n",            Gbl_ExternalRefFilename);        AslAbort ();        return;    }    /* Each line defines a method */    while (fgets (StringBuffer, ASL_MSG_BUFFER_SIZE, ExternalRefFile))    {        Token = strtok (StringBuffer, METHOD_SEPARATORS);   /* "External" */        if (!Token)        {            continue;        }        if (strcmp (Token, "External"))        {            continue;        }        MethodName = strtok (NULL, METHOD_SEPARATORS);      /* Method namepath */        if (!MethodName)        {            continue;        }        Token = strtok (NULL, METHOD_SEPARATORS);           /* "MethodObj" */        if (!Token)        {            continue;        }        if (strcmp (Token, "MethodObj"))        {            continue;        }        Token = strtok (NULL, METHOD_SEPARATORS);           /* Arg count */        if (!Token)        {            continue;        }        /* Convert arg count string to an integer */        errno = 0;        ArgCount = strtoul (Token, NULL, 0);        if (errno)        {            fprintf (stderr, "Invalid argument count (%s)/n", Token);            continue;        }        if (ArgCount > 7)        {            fprintf (stderr, "Invalid argument count (%u)/n", ArgCount);            continue;        }        /* Add this external to the global list */        AcpiOsPrintf ("%s: Importing method external (%u arguments) %s/n",            Gbl_ExternalRefFilename, ArgCount, MethodName);        AcpiDmAddPathToExternalList (MethodName, ACPI_TYPE_METHOD,            ArgCount, (ACPI_EXT_RESOLVED_REFERENCE | ACPI_EXT_ORIGIN_FROM_FILE));        ImportCount++;    }    if (!ImportCount)    {        fprintf (stderr,            "Did not find any external methods in reference file /"%s/"/n",            Gbl_ExternalRefFilename);    }    else    {        /* Add the external(s) to the namespace *///.........这里部分代码省略.........
开发者ID:luo3555,项目名称:Intel-iasl,代码行数:101,


示例15: AnOperandTypecheckWalkEnd

//.........这里部分代码省略.........    default:        break;    }    switch (OpcodeClass)    {    case AML_CLASS_EXECUTE:    case AML_CLASS_CREATE:    case AML_CLASS_CONTROL:    case AML_CLASS_RETURN_VALUE:        /* Reverse the runtime argument list */        RuntimeArgTypes2 = 0;        while ((ArgType = GET_CURRENT_ARG_TYPE (RuntimeArgTypes)))        {            RuntimeArgTypes2 <<= ARG_TYPE_WIDTH;            RuntimeArgTypes2 |= ArgType;            INCREMENT_ARG_LIST (RuntimeArgTypes);        }        /* Typecheck each argument */        while ((ArgType = GET_CURRENT_ARG_TYPE (RuntimeArgTypes2)))        {            /* Get the required type(s) for the argument */            RequiredBtypes = AnMapArgTypeToBtype (ArgType);            if (!ArgOp)            {                AslError (ASL_ERROR, ASL_MSG_COMPILER_INTERNAL, Op,                    "Null ArgOp in argument loop");                AslAbort ();            }            /* Get the actual type of the argument */            ThisNodeBtype = AnGetBtype (ArgOp);            if (ThisNodeBtype == ACPI_UINT32_MAX)            {                goto NextArgument;            }            /* Examine the arg based on the required type of the arg */            switch (ArgType)            {            case ARGI_TARGETREF:                if (ArgOp->Asl.ParseOpcode == PARSEOP_ZERO)                {                    /* ZERO is the placeholder for "don't store result" */                    ThisNodeBtype = RequiredBtypes;                    break;                }            /* Fallthrough */            case ARGI_STORE_TARGET:                if (ArgOp->Asl.ParseOpcode == PARSEOP_INTEGER)                {                    /*                     * This is the case where an original reference to a resource
开发者ID:9elements,项目名称:fwts,代码行数:67,



注:本文中的AslAbort函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ AslCommonError函数代码示例
C++ AsicSendCommandToMcu函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。