summaryrefslogtreecommitdiff
path: root/source/include
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2016-09-23 14:00:13 +0800
committerLv Zheng <lv.zheng@intel.com>2016-09-23 14:00:13 +0800
commitf9fe27a68a90c9d32dd3156241a5e788fb6956ea (patch)
treef7837958ba8d3256250c694a5ce85648749369e5 /source/include
parent0c166628714058f39b1a08692046c0b815b4454c (diff)
downloadacpica-f9fe27a68a90c9d32dd3156241a5e788fb6956ea.tar.gz
Namespace: Add AcpiNsHandleToName()
This patch adds AcpiNsHandleToName() so that in the AcpiGetName(): 1. Logics can be made simpler, 2. Lock held for AcpiNsHandleToName() can also be applied to AcpiNsHandleToPathname(). The lock might be useless (see Link 1 below), but kept as AcpiGetName() is an external API. Except the lock correction, this patch is a functional no-op. BZ 1182, Lv Zheng. Link: https://bugs.acpica.org/show_bug.cgi?id=1182 [# 1] Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Diffstat (limited to 'source/include')
-rw-r--r--source/include/acnamesp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/include/acnamesp.h b/source/include/acnamesp.h
index 9fc98733d..6fb0f2748 100644
--- a/source/include/acnamesp.h
+++ b/source/include/acnamesp.h
@@ -457,6 +457,11 @@ AcpiNsNameOfCurrentScope (
ACPI_WALK_STATE *WalkState);
ACPI_STATUS
+AcpiNsHandleToName (
+ ACPI_HANDLE TargetHandle,
+ ACPI_BUFFER *Buffer);
+
+ACPI_STATUS
AcpiNsHandleToPathname (
ACPI_HANDLE TargetHandle,
ACPI_BUFFER *Buffer,