FreeBSD/sys/contrib/dev/acpica/components/debugger/dbutils.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiDbLocalNsLookup
 *
 * PARAMETERS:  Name            - Name to lookup
 *
 * RETURN:      Pointer to a namespace node, null on failure
 *
 * DESCRIPTION: Lookup a name in the ACPI namespace
 *
 * Note: Currently begins search from the root. Could be enhanced to use
 * the current prefix (scope) node as the search beginning point.
 *
 ******************************************************************************/
AcpiDbLocalNsLookup
PARAMETERS:  Name            - Name to lookup

Pointer to a namespace node, null on failure

Lookup a name in the ACPI namespace

Currently begins search from the root. Could be enhanced to use
the current prefix (scope) node as the search beginning point.
AcpiDbLocalNsLookup PARAMETERS : Name - Name to lookup Pointer to a namespace node null on failure Lookup a name in the ACPI namespace Currently begins search from the root . Could be enhanced to use the current prefix ( scope ) node as the search beginning point .
ACPI_NAMESPACE_NODE *
AcpiDbLocalNsLookup (
    char                    *Name)
{
    char                    *InternalPath;
    ACPI_STATUS             Status;
    ACPI_NAMESPACE_NODE     *Node = NULL;
    AcpiDbPrepNamestring (Name);
    Status = AcpiNsInternalizeName (Name, &InternalPath);
    if (ACPI_FAILURE (Status))
    {
        AcpiOsPrintf ("Invalid namestring: %s\n", Name);
        return (NULL);
    }
    Status = AcpiNsLookup (NULL, InternalPath, ACPI_TYPE_ANY,
        ACPI_IMODE_EXECUTE, ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE,
        NULL, &Node);
    if (ACPI_FAILURE (Status))
    {
        AcpiOsPrintf ("Could not locate name: %s, %s\n",
            Name, AcpiFormatException (Status));
    }
    ACPI_FREE (InternalPath);
    return (Node);
}
ACPI_NAMESPACE_NODE * AcpiDbLocalNsLookup ( char * Name ) { char * InternalPath ; ACPI_STATUS Status ; ACPI_NAMESPACE_NODE * Node = NULL ; AcpiDbPrepNamestring ( Name ) ; Status = AcpiNsInternalizeName ( Name , & InternalPath ) ; if ( ACPI_FAILURE ( Status ) ) { AcpiOsPrintf ( " \n " , Name ) ; return ( NULL ) ; } Status = AcpiNsLookup ( NULL , InternalPath , ACPI_TYPE_ANY , ACPI_IMODE_EXECUTE , ACPI_NS_NO_UPSEARCH | ACPI_NS_DONT_OPEN_SCOPE , NULL , & Node ) ; if ( ACPI_FAILURE ( Status ) ) { AcpiOsPrintf ( " \n " , Name , AcpiFormatException ( Status ) ) ; } ACPI_FREE ( InternalPath ) ; return ( Node ) ; }
FUNCTION:    AcpiDbLocalNsLookup
 PARAMETERS:  Name            - Name to lookup
FUNCTION : AcpiDbLocalNsLookup PARAMETERS : Name - Name to lookup
/* Build an internal namestring */ /*
     * Lookup the name.
     * (Uses root node as the search starting point)
     */