aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/device/device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/device/device.h b/src/drivers/device/device.h
index 67aaa0aff..4d4bed835 100644
--- a/src/drivers/device/device.h
+++ b/src/drivers/device/device.h
@@ -445,6 +445,13 @@ protected:
*/
virtual int unregister_class_devname(const char *class_devname, unsigned class_instance);
+ /**
+ * Get the device name.
+ *
+ * @return the file system string of the device handle
+ */
+ const char* get_devname() { return _devname; }
+
bool _pub_blocked; /**< true if publishing should be blocked */
private: