50#define _COMPONENT ACPI_NAMESPACE
108 "Invalid/cached reference target node: %p, descriptor type %d",
139 const char *NodeName;
265 char c, *Left, *Right;
272#define ACPI_PATH_PUT8(Path, Size, Byte, Length) \
274 if ((Length) < (Size)) \
276 (Path)[(Length)] = (Byte); \
292 goto BuildTrailingNull;
296 while (NextNode && NextNode != AcpiGbl_RootNode)
298 if (NextNode !=
Node)
304 DoNoTrailing = NoTrailing;
305 for (
i = 0;
i < 4;
i++)
308 if (DoNoTrailing &&
c !=
'_')
310 DoNoTrailing =
FALSE;
318 NextNode = NextNode->
Parent;
328 Right = FullPath+
Length - 1;
392 "Could not allocate %u bytes", (
UINT32)
Size));
428 char *FullPath =
NULL;
429 char *ExternalPath =
NULL;
430 char *PrefixPath =
NULL;
431 ACPI_SIZE PrefixPathLength = 0;
436 if (PrefixScope && PrefixScope->
Scope.
Node)
441 PrefixPathLength =
strlen (PrefixPath);
446 NULL, &ExternalPath);
455 PrefixPathLength +
strlen (ExternalPath) + 2);
464 (*ExternalPath !=
'\\') &&
465 (*ExternalPath !=
'^'))
467 strcat (FullPath, PrefixPath);
475 strcat (FullPath, ExternalPath);
509 char *InputPath = OriginalPath;
518 NewPath = NewPathBuffer;
526 if (*InputPath ==
'\\')
528 *NewPath = *InputPath;
533 while (*InputPath ==
'^')
535 *NewPath = *InputPath;
548 if ((
i == 0) || (*InputPath !=
'_'))
550 *NewPath = *InputPath;
559 if (*InputPath ==
'.')
561 *NewPath = *InputPath;
568 strcpy (OriginalPath, NewPathBuffer);
char * strcat(char *DstString, const char *SrcString)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
#define ACPI_GET_FUNCTION_NAME
#define ACPI_GET_DESCRIPTOR_TYPE(d)
#define ACPI_MOVE_32_TO_32(d, s)
ACPI_NAMESPACE_NODE * AcpiNsValidateHandle(ACPI_HANDLE Handle)
ACPI_STATUS AcpiNsExternalizeName(UINT32 InternalNameLength, const char *InternalName, UINT32 *ConvertedNameLength, char **ConvertedName)
#define ACPI_DESC_TYPE_NAMED
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_MODULE_NAME(Name)
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define return_ACPI_STATUS(s)
#define ACPI_ERROR(plist)
#define ACPI_DEBUG_PRINT_RAW(pl)
#define ACPI_COPY_NAMESEG(dest, src)
#define ACPI_PATH_SEGMENT_LENGTH
#define ACPI_ALLOCATE_ZEROED(a)
#define ACPI_NAMESEG_SIZE
ACPI_STATUS AcpiUtInitializeBuffer(ACPI_BUFFER *Buffer, ACPI_SIZE RequiredLength)
const char * AcpiUtGetNodeName(void *Object)
#define AML_DUAL_NAME_PREFIX
static const WCHAR Cleanup[]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_In_ HANDLE _In_opt_ HANDLE _Out_opt_ PHANDLE TargetHandle
void AcpiNsNormalizePathname(char *OriginalPath)
ACPI_STATUS AcpiNsHandleToName(ACPI_HANDLE TargetHandle, ACPI_BUFFER *Buffer)
char * AcpiNsGetNormalizedPathname(ACPI_NAMESPACE_NODE *Node, BOOLEAN NoTrailing)
ACPI_SIZE AcpiNsGetPathnameLength(ACPI_NAMESPACE_NODE *Node)
UINT32 AcpiNsBuildNormalizedPath(ACPI_NAMESPACE_NODE *Node, char *FullPath, UINT32 PathSize, BOOLEAN NoTrailing)
char * AcpiNsBuildPrefixedPathname(ACPI_GENERIC_STATE *PrefixScope, const char *InternalPath)
ACPI_STATUS AcpiNsHandleToPathname(ACPI_HANDLE TargetHandle, ACPI_BUFFER *Buffer, BOOLEAN NoTrailing)
char * AcpiNsGetExternalPathname(ACPI_NAMESPACE_NODE *Node)
#define ACPI_PATH_PUT8(Path, Size, Byte, Length)
_In_ ULONG _In_ ULONG _In_ ULONG Length
struct acpi_namespace_node * Parent
ACPI_STATE_COMMON ACPI_NAMESPACE_NODE * Node
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID _Out_ PULONG RequiredSize