FreeBSD/sys/contrib/dev/acpica/components/parser/psopinfo.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiPsGetOpcodeName
 *
 * PARAMETERS:  Opcode              - The AML opcode
 *
 * RETURN:      A pointer to the name of the opcode (ASCII String)
 *              Note: Never returns NULL.
 *
 * DESCRIPTION: Translate an opcode into a human-readable string
 *
 ******************************************************************************/
AcpiPsGetOpcodeName
PARAMETERS:  Opcode              - The AML opcode

A pointer to the name of the opcode (ASCII String)
Note: Never returns NULL.

Translate an opcode into a human-readable string
AcpiPsGetOpcodeName PARAMETERS : Opcode - The AML opcode A pointer to the name of the opcode ( ASCII String ) Note : Never returns NULL . Translate an opcode into a human - readable string
const char *
AcpiPsGetOpcodeName (
    UINT16                  Opcode)
{
#if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT)
    const ACPI_OPCODE_INFO  *Op;
    Op = AcpiPsGetOpcodeInfo (Opcode);
    return (Op->Name);
#else
    return ("OpcodeName unavailable");
#endif
}
const char * AcpiPsGetOpcodeName ( UINT16 Opcode ) { #if defined ( ACPI_DISASSEMBLER ) || defined ( ACPI_DEBUG_OUTPUT ) const ACPI_OPCODE_INFO * Op ; Op = AcpiPsGetOpcodeInfo ( Opcode ) ; return ( Op -> Name ) ; #else return ( " " ) ; #endif }
FUNCTION:    AcpiPsGetOpcodeName
 PARAMETERS:  Opcode              - The AML opcode
FUNCTION : AcpiPsGetOpcodeName PARAMETERS : Opcode - The AML opcode
/* Always guaranteed to return a valid pointer */