Searched refs:sysfsPath (Results 1 – 1 of 1) sorted by relevance
213 auto sysfsPath = std::filesystem::path("/sys/dev/char/"); in getSysfsRootPath() local214 sysfsPath /= std::to_string(major_num) + ":" + std::to_string(minor_num); in getSysfsRootPath()215 sysfsPath = std::filesystem::canonical(sysfsPath, errorCode); in getSysfsRootPath()225 while (sysfsPath != "/" && sysfsPath.filename() != "input") { in getSysfsRootPath()226 sysfsPath = sysfsPath.parent_path(); in getSysfsRootPath()230 sysfsPath = sysfsPath.parent_path(); in getSysfsRootPath()233 if (sysfsPath == "/" || !std::filesystem::exists(sysfsPath, errorCode)) { in getSysfsRootPath()243 return sysfsPath; in getSysfsRootPath()