Index: /trunk/include/iprt/linux/sysfs.h
===================================================================
--- /trunk/include/iprt/linux/sysfs.h	(revision 86578)
+++ /trunk/include/iprt/linux/sysfs.h	(revision 86579)
@@ -446,4 +446,28 @@
                                    const char *pszPattern, ...) RT_IPRT_FORMAT_ATTR(5, 6);
 
+/**
+ * Constructs the path of a sysfs file from the format parameters passed,
+ * prepending "/sys/" if the path is relative.
+ *
+ * @returns IPRT status code.
+ * @param   pszPath    Where to write the path.
+ * @param   cbPath     The size of the buffer pointed to by @a pszPath.
+ * @param   pszFormat  The name format, either absolute or relative to "/sys/".
+ * @param   va         The format args.
+ */
+RTDECL(int) RTLinuxConstructPathV(char *pszPath, size_t cbPath, const char *pszFormat, va_list va) RT_IPRT_FORMAT_ATTR(3, 0);
+
+/**
+ * Constructs the path of a sysfs file from the format parameters passed,
+ * prepending "/sys/" if the path is relative.
+ *
+ * @returns IPRT status code.
+ * @param   pszPath    Where to write the path.
+ * @param   cbPath     The size of the buffer pointed to by @a pszPath.
+ * @param   pszFormat  The name format, either absolute or relative to "/sys/".
+ * @param   ...        The format args.
+ */
+RTDECL(int) RTLinuxConstructPath(char *pszPath, size_t cbPath, const char *pszFormat, ...) RT_IPRT_FORMAT_ATTR(3, 4);
+
 /** @} */
 
Index: /trunk/include/iprt/mangling.h
===================================================================
--- /trunk/include/iprt/mangling.h	(revision 86578)
+++ /trunk/include/iprt/mangling.h	(revision 86579)
@@ -1280,4 +1280,6 @@
 # define RTLinuxCheckDevicePath                         RT_MANGLER(RTLinuxCheckDevicePath)
 # define RTLinuxCheckDevicePathV                        RT_MANGLER(RTLinuxCheckDevicePathV)
+# define RTLinuxConstructPath                           RT_MANGLER(RTLinuxConstructPath)
+# define RTLinuxConstructPathV                          RT_MANGLER(RTLinuxConstructPathV)
 # define RTLinuxSysFsClose                              RT_MANGLER(RTLinuxSysFsClose)
 # define RTLinuxSysFsExists                             RT_MANGLER(RTLinuxSysFsExists)
Index: /trunk/src/VBox/Runtime/r3/linux/sysfs.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/linux/sysfs.cpp	(revision 86578)
+++ /trunk/src/VBox/Runtime/r3/linux/sysfs.cpp	(revision 86579)
@@ -125,4 +125,20 @@
 {
     return rtLinuxConstructPathV(pszBuf, cchBuf, "/sys/", pszFormat, va);
+}
+
+
+RTDECL(int) RTLinuxConstructPathV(char *pszPath, size_t cbPath, const char *pszFormat, va_list va)
+{
+    return rtLinuxSysFsConstructPath(pszPath, cbPath, pszFormat, va);
+}
+
+
+RTDECL(int) RTLinuxConstructPath(char *pszPath, size_t cbPath, const char *pszFormat, ...)
+{
+    va_list va;
+    va_start(va, pszFormat);
+    int rc = rtLinuxSysFsConstructPath(pszPath, cbPath, pszFormat, va);
+    va_end(va);
+    return rc;
 }
 
