Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175794000
D60655.id189620.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
928 B
Referenced Files
None
Subscribers
None
D60655.id189620.diff
View Options
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -4345,6 +4345,19 @@
return ("(unknown)");
}
+bool
+acpi_get_name(ACPI_HANDLE handle, char *data, size_t len)
+{
+ ACPI_BUFFER buf;
+
+ buf.Length = len;
+ buf.Pointer = data;
+
+ if (handle && ACPI_SUCCESS(AcpiGetName(handle, ACPI_FULL_PATHNAME, &buf)))
+ return (true);
+ return (false);
+}
+
/*
* Debugging/bug-avoidance. Avoid trying to fetch info on various
* parts of the namespace.
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -501,6 +501,7 @@
}
char *acpi_name(ACPI_HANDLE handle);
+bool acpi_get_name(ACPI_HANDLE handle, char *data, size_t len);
int acpi_avoid(ACPI_HANDLE handle);
int acpi_disabled(char *subsys);
int acpi_get_acpi_device_path(device_t bus, device_t child,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 14, 10:05 AM (3 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40768320
Default Alt Text
D60655.id189620.diff (928 B)
Attached To
Mode
D60655: acpica: Add a thread safe acpi_get_name
Attached
Detach File
Event Timeline
Log In to Comment