[RFC 4/9] struct device_type: Add function callback durable_name

Tony Asleson
2019-12-23T22:56:16Z

Function callback to be used in logging functions to write a persistent
durable name to the supplied character buffer. This will be used to add
structured key-value data to log messages.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
---
include/linux/device.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/device.h b/include/linux/device.h
index 297239a08bb7..dd4ac8db5f57 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -799,6 +799,8 @@ struct device_type {
void (*release)(struct device *dev);

const struct dev_pm_ops *pm;
+
+ int (*durable_name)(const struct device *dev, char *buff, size_t len);
};

/* interface for exporting device attributes */
--
2.21.0