Deleted Added
full compact
nsutils.c (123315) nsutils.c (126372)
1/******************************************************************************
2 *
3 * Module Name: nsutils - Utilities for accessing ACPI namespace, accessing
4 * parents and siblings and Scope manipulation
1/******************************************************************************
2 *
3 * Module Name: nsutils - Utilities for accessing ACPI namespace, accessing
4 * parents and siblings and Scope manipulation
5 * $Revision: 131 $
5 * $Revision: 133 $
6 *
7 *****************************************************************************/
8
9/******************************************************************************
10 *
11 * 1. Copyright Notice
12 *
6 *
7 *****************************************************************************/
8
9/******************************************************************************
10 *
11 * 1. Copyright Notice
12 *
13 * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
13 * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
14 * All rights reserved.
15 *
16 * 2. License
17 *
18 * 2.1. This is your license from Intel Corp. under its intellectual property
19 * rights. You may have additional license terms from the party that provided
20 * you this software, covering your right to use that party's intellectual
21 * property rights.

--- 1026 unchanged lines hidden (view full) ---

1048 }
1049 }
1050
1051 /* Must lock namespace during lookup */
1052
1053 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
1054 if (ACPI_FAILURE (Status))
1055 {
14 * All rights reserved.
15 *
16 * 2. License
17 *
18 * 2.1. This is your license from Intel Corp. under its intellectual property
19 * rights. You may have additional license terms from the party that provided
20 * you this software, covering your right to use that party's intellectual
21 * property rights.

--- 1026 unchanged lines hidden (view full) ---

1048 }
1049 }
1050
1051 /* Must lock namespace during lookup */
1052
1053 Status = AcpiUtAcquireMutex (ACPI_MTX_NAMESPACE);
1054 if (ACPI_FAILURE (Status))
1055 {
1056 return_ACPI_STATUS (Status);
1056 goto Cleanup;
1057 }
1058
1059 /* Setup lookup scope (search starting point) */
1060
1061 ScopeInfo.Scope.Node = StartNode;
1062
1063 /* Lookup the name in the namespace */
1064
1065 Status = AcpiNsLookup (&ScopeInfo, InternalPath,
1066 ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE,
1067 (Flags | ACPI_NS_DONT_OPEN_SCOPE),
1068 NULL, ReturnNode);
1069 if (ACPI_FAILURE (Status))
1070 {
1071 ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "%s, %s\n",
1072 InternalPath, AcpiFormatException (Status)));
1073 }
1074
1057 }
1058
1059 /* Setup lookup scope (search starting point) */
1060
1061 ScopeInfo.Scope.Node = StartNode;
1062
1063 /* Lookup the name in the namespace */
1064
1065 Status = AcpiNsLookup (&ScopeInfo, InternalPath,
1066 ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE,
1067 (Flags | ACPI_NS_DONT_OPEN_SCOPE),
1068 NULL, ReturnNode);
1069 if (ACPI_FAILURE (Status))
1070 {
1071 ACPI_DEBUG_PRINT ((ACPI_DB_INFO, "%s, %s\n",
1072 InternalPath, AcpiFormatException (Status)));
1073 }
1074
1075 /* Cleanup */
1076
1077 (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
1078
1075 (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
1076
1077Cleanup:
1078 /* Cleanup */
1079 if (InternalPath)
1080 {
1081 ACPI_MEM_FREE (InternalPath);
1082 }
1083 return_ACPI_STATUS (Status);
1084}
1085
1086

--- 124 unchanged lines hidden ---
1079 if (InternalPath)
1080 {
1081 ACPI_MEM_FREE (InternalPath);
1082 }
1083 return_ACPI_STATUS (Status);
1084}
1085
1086

--- 124 unchanged lines hidden ---