Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110676847
D20644.id61858.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D20644.id61858.diff
View Options
Index: stable/12/sys/dev/acpica/acpi.c
===================================================================
--- stable/12/sys/dev/acpica/acpi.c
+++ stable/12/sys/dev/acpica/acpi.c
@@ -869,7 +869,7 @@
strlcat(buf, buf2, buflen);
}
} else {
- snprintf(buf, buflen, "unknown");
+ snprintf(buf, buflen, "");
}
return (0);
}
Index: stable/12/sys/dev/nvdimm/nvdimm.c
===================================================================
--- stable/12/sys/dev/nvdimm/nvdimm.c
+++ stable/12/sys/dev/nvdimm/nvdimm.c
@@ -560,6 +560,24 @@
return (0);
}
+static int
+nvdimm_root_child_location_str(device_t dev, device_t child, char *buf,
+ size_t buflen)
+{
+ ACPI_HANDLE handle;
+ int res;
+
+ handle = nvdimm_root_get_acpi_handle(child);
+ if (handle != NULL)
+ res = snprintf(buf, buflen, "handle=%s", acpi_name(handle));
+ else
+ res = snprintf(buf, buflen, "");
+
+ if (res >= buflen)
+ return (EOVERFLOW);
+ return (0);
+}
+
static device_method_t nvdimm_methods[] = {
DEVMETHOD(device_probe, nvdimm_probe),
DEVMETHOD(device_attach, nvdimm_attach),
@@ -582,6 +600,7 @@
DEVMETHOD(bus_add_child, bus_generic_add_child),
DEVMETHOD(bus_read_ivar, nvdimm_root_read_ivar),
DEVMETHOD(bus_write_ivar, nvdimm_root_write_ivar),
+ DEVMETHOD(bus_child_location_str, nvdimm_root_child_location_str),
DEVMETHOD_END
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 7:21 PM (10 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16778033
Default Alt Text
D20644.id61858.diff (1 KB)
Attached To
Mode
D20644: MFC 348757,351225: acpi and nvdimm location_str updates
Attached
Detach File
Event Timeline
Log In to Comment