Displaying 1 result from an estimated 1 matches for "acpi_device_uid_show".
Did you mean:
acpi_device_hid_show
2008 Dec 25
0
[PATCH 1/4] dom0 linux: Expose HID, UID, SEG, BBN of PCI root bridge via sysfs.
...111,6 +105,42 @@
.uevent_ops = &namespace_uevent_ops,
};
+static ssize_t
+acpi_device_hid_show(struct acpi_device *acpi_dev, char *buf)
+{
+ return sprintf(buf, "%s\n", acpi_dev->pnp.hardware_id);
+}
+ACPI_DEVICE_ATTR(hid, 0444, acpi_device_hid_show, NULL);
+
+static ssize_t
+acpi_device_uid_show(struct acpi_device *acpi_dev, char *buf)
+{
+ return sprintf(buf, "%s\n", acpi_dev->pnp.unique_id);
+}
+ACPI_DEVICE_ATTR(uid, 0444, acpi_device_uid_show, NULL);
+
+static int acpi_device_setup_files(struct acpi_device *dev)
+{
+ int result = 0;
+
+ if (dev->flags.hardware_id) {
+...