50#define _COMPONENT ACPI_NAMESPACE
55#ifdef ACPI_OBSOLETE_FUNCTIONS
186 const char *NextExternalChar;
193 NextExternalChar =
Info->ExternalName;
195 Info->NumSegments = 0;
234 if (*NextExternalChar)
236 Info->NumSegments = 1;
237 for (
i = 0; NextExternalChar[
i];
i++)
249 Info->NextExternalChar = NextExternalChar;
271 char *InternalName =
Info->InternalName;
272 const char *ExternalName =
Info->NextExternalChar;
282 if (
Info->FullyQualified)
286 if (NumSegments <= 1)
288 Result = &InternalName[1];
290 else if (NumSegments == 2)
293 Result = &InternalName[2];
298 InternalName[2] = (
char) NumSegments;
299 Result = &InternalName[3];
311 for (
i = 0;
i <
Info->NumCarats;
i++)
317 if (NumSegments <= 1)
321 else if (NumSegments == 2)
324 Result = &InternalName[(ACPI_SIZE)
i+1];
329 InternalName[(ACPI_SIZE)
i+1] = (
char) NumSegments;
330 Result = &InternalName[(ACPI_SIZE)
i+2];
336 for (; NumSegments; NumSegments--)
341 (*ExternalName == 0))
359 (*ExternalName != 0))
374 if (
Info->FullyQualified)
377 InternalName, InternalName));
382 InternalName, InternalName));
406 const char *ExternalName,
407 char **ConvertedName)
417 if ((!ExternalName) ||
418 (*ExternalName == 0) ||
426 Info.ExternalName = ExternalName;
439 Info.InternalName = InternalName;
447 *ConvertedName = InternalName;
471 UINT32 InternalNameLength,
472 const char *InternalName,
473 UINT32 *ConvertedNameLength,
474 char **ConvertedName)
487 if (!InternalNameLength ||
496 switch (InternalName[0])
505 for (
i = 0;
i < InternalNameLength;
i++)
509 PrefixLength =
i + 1;
517 if (
i == InternalNameLength)
533 if (PrefixLength < InternalNameLength)
535 switch (InternalName[PrefixLength])
541 NamesIndex = PrefixLength + 2;
542 NumSegments = (
UINT8)
543 InternalName[(ACPI_SIZE) PrefixLength + 1];
550 NamesIndex = PrefixLength + 1;
566 NamesIndex = PrefixLength;
578 ((NumSegments > 0) ? (NumSegments - 1) : 0) + 1;
593 if (!(*ConvertedName))
600 for (
i = 0;
i < PrefixLength;
i++)
602 (*ConvertedName)[
j++] = InternalName[
i];
607 for (
i = 0;
i < NumSegments;
i++)
611 (*ConvertedName)[
j++] =
'.';
617 &InternalName[NamesIndex]);
625 if (ConvertedNameLength)
666 return (AcpiGbl_RootNode);
795 *ReturnNode = PrefixNode;
798 *ReturnNode = AcpiGbl_RootNode;
808 *ReturnNode = AcpiGbl_RootNode;
const UINT8 AcpiGbl_NsProperties[ACPI_NUM_NS_TYPES]
#define ACPI_MTX_NAMESPACE
#define ACPI_IS_PARENT_PREFIX(c)
#define ACPI_IS_PATH_SEPARATOR(c)
#define ACPI_GET_DESCRIPTOR_TYPE(d)
#define ACPI_IS_ROOT_PREFIX(c)
ACPI_STATUS AcpiNsLookup(ACPI_GENERIC_STATE *ScopeInfo, char *Name, ACPI_OBJECT_TYPE Type, ACPI_INTERPRETER_MODE InterpreterMode, UINT32 Flags, ACPI_WALK_STATE *WalkState, ACPI_NAMESPACE_NODE **RetNode)
void AcpiNsDeleteNamespaceSubtree(ACPI_NAMESPACE_NODE *ParentHandle)
void AcpiNsDeleteNode(ACPI_NAMESPACE_NODE *Node)
ACPI_STATUS AcpiNsHandleToPathname(ACPI_HANDLE TargetHandle, ACPI_BUFFER *Buffer, BOOLEAN NoTrailing)
#define ACPI_NS_DONT_OPEN_SCOPE
#define ACPI_DESC_TYPE_NAMED
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_MODULE_NAME(Name)
#define ACPI_WARNING(plist)
#define ACPI_FUNCTION_ENTRY()
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define return_ACPI_STATUS(s)
#define ACPI_FUNCTION_TRACE(a)
#define ACPI_ERROR(plist)
void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf(const char *Format,...)
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING Pathname
#define ACPI_COPY_NAMESEG(dest, src)
#define ACPI_CAST_PTR(t, p)
#define ACPI_ALLOCATE_LOCAL_BUFFER
#define ACPI_ALLOCATE_ZEROED(a)
#define ACPI_TYPE_LOCAL_MAX
#define ACPI_NAMESEG_SIZE
ACPI_STATUS AcpiUtAcquireMutex(ACPI_MUTEX_HANDLE MutexId)
void AcpiUtRepairName(char *Name)
ACPI_STATUS AcpiUtReleaseMutex(ACPI_MUTEX_HANDLE MutexId)
BOOLEAN AcpiUtValidObjectType(ACPI_OBJECT_TYPE Type)
#define AML_PARENT_PREFIX
#define AML_DUAL_NAME_PREFIX
#define AML_MULTI_NAME_PREFIX
static const WCHAR Message[]
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
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 GLint GLint j
ACPI_STATUS AcpiNsInternalizeName(const char *ExternalName, char **ConvertedName)
ACPI_NAMESPACE_NODE * AcpiNsValidateHandle(ACPI_HANDLE Handle)
ACPI_OBJECT_TYPE AcpiNsGetType(ACPI_NAMESPACE_NODE *Node)
void AcpiNsGetInternalNameLength(ACPI_NAMESTRING_INFO *Info)
ACPI_STATUS AcpiNsGetNodeUnlocked(ACPI_NAMESPACE_NODE *PrefixNode, const char *Pathname, UINT32 Flags, ACPI_NAMESPACE_NODE **ReturnNode)
ACPI_STATUS AcpiNsGetNode(ACPI_NAMESPACE_NODE *PrefixNode, const char *Pathname, UINT32 Flags, ACPI_NAMESPACE_NODE **ReturnNode)
ACPI_STATUS AcpiNsExternalizeName(UINT32 InternalNameLength, const char *InternalName, UINT32 *ConvertedNameLength, char **ConvertedName)
void AcpiNsPrintNodePathname(ACPI_NAMESPACE_NODE *Node, const char *Message)
UINT32 AcpiNsLocal(ACPI_OBJECT_TYPE Type)
void AcpiNsTerminate(void)
ACPI_STATUS AcpiNsBuildInternalName(ACPI_NAMESTRING_INFO *Info)
UINT32 AcpiNsOpensScope(ACPI_OBJECT_TYPE Type)
ACPI_STATE_COMMON ACPI_NAMESPACE_NODE * Node
const char * AcpiFormatException(ACPI_STATUS Status)
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_In_ ULONG _Out_opt_ PULONG RequiredLength
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
_Must_inspect_result_ _In_ ULONG Flags