Home
last modified time | relevance | path

Searched refs:sysfs_path (Results 1 – 11 of 11) sorted by relevance

/system/memory/mmd/src/
Dblock_dev.rs63 sysfs_path: &str, in configure_block_device_queue_depth_with_sysfs()
65 let file_backing_device = find_backing_block_device(file_path, sysfs_path)?; in configure_block_device_queue_depth_with_sysfs()
80 fn find_backing_block_device(file_path: &Path, sysfs_path: &str) -> Result<String> { in find_backing_block_device()
81 let mut device_name = get_block_device_name(file_path, sysfs_path)?; in find_backing_block_device()
83 while let Some(parent_device) = get_parent_block_device(&device_name, sysfs_path)? { in find_backing_block_device()
87 device_name = partition_parent(&device_name, sysfs_path)?; in find_backing_block_device()
95 fn get_block_device_name(file_path: &Path, sysfs_path: &str) -> Result<String> { in get_block_device_name()
125 fn get_parent_block_device(device_name: &str, sysfs_path: &str) -> std::io::Result<Option<String>> { in get_parent_block_device()
148 fn partition_parent(device_name: &str, sysfs_path: &str) -> std::io::Result<String> { in partition_parent()
/system/apex/apexd/
Dapexd_loop.cpp88 const std::string sysfs_path = in ConfigureScheduler() local
90 unique_fd sysfs_fd(open(sysfs_path.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureScheduler()
92 return ErrnoError() << "Failed to open " << sysfs_path; in ConfigureScheduler()
102 if (!ReadFileToString(sysfs_path, &cur_sched_str)) { in ConfigureScheduler()
103 return ErrnoError() << "Failed to read " << sysfs_path; in ConfigureScheduler()
118 return ErrnoError() << "Failed to write to " << sysfs_path; in ConfigureScheduler()
247 const std::string sysfs_path = in ConfigureQueueDepth() local
250 if (!ReadFileToString(sysfs_path, &cur_nr_requests_str)) { in ConfigureQueueDepth()
251 return ErrnoError() << "Failed to read " << sysfs_path; in ConfigureQueueDepth()
259 unique_fd sysfs_fd(open(sysfs_path.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureQueueDepth()
[all …]
/system/core/fs_mgr/
Dblockdev.cpp142 const std::string sysfs_path = in ConfigureQueueDepth() local
144 unique_fd sysfs_fd(open(sysfs_path.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureQueueDepth()
146 return ErrnoError() << "Failed to open " << sysfs_path; in ConfigureQueueDepth()
151 return ErrnoError() << "Failed to write to " << sysfs_path; in ConfigureQueueDepth()
/system/vold/
DWriteBooster.cpp35 std::string sysfs_path = GetUfsHostControllerSysfsPath(); in readHexValue() local
36 if (sysfs_path.empty()) { in readHexValue()
40 std::string fullpath = sysfs_path + "/" + std::string(path); in readHexValue()
DFsCrypt.cpp271 std::string sysfs_path = "/sys/class/block/" + name + "/queue/crypto/max_dun_bits"; in DoesHardwareSupportOnly32DunBits() local
272 if (!android::vold::pathExists(sysfs_path)) { in DoesHardwareSupportOnly32DunBits()
274 sysfs_path = "/sys/class/block/" + name + "/../queue/crypto/max_dun_bits"; in DoesHardwareSupportOnly32DunBits()
276 if (android::vold::pathExists(sysfs_path)) { in DoesHardwareSupportOnly32DunBits()
278 if (!android::base::ReadFileToString(sysfs_path, &max_dun_bits)) { in DoesHardwareSupportOnly32DunBits()
279 PLOG(ERROR) << "Error reading " << sysfs_path; in DoesHardwareSupportOnly32DunBits()
284 LOG(ERROR) << sysfs_path << " = " << max_dun_bits; in DoesHardwareSupportOnly32DunBits()
289 LOG(DEBUG) << sysfs_path << " = " << max_dun_bits; in DoesHardwareSupportOnly32DunBits()
295 LOG(ERROR) << sysfs_path << " does not exist"; in DoesHardwareSupportOnly32DunBits()
DIdleMaint.cpp279 if (!entry.sysfs_path.empty()) { in getDevSysfsPath()
280 return entry.sysfs_path; in getDevSysfsPath()
/system/core/fs_mgr/libfiemap/
Dutility.cpp133 std::string sysfs_path = ::android::base::StringPrintf("/sys/dev/block/%u:%u", major, minor); in BlockDeviceToName() local
136 if (!::android::base::Readlink(sysfs_path, &sysfs_bdev)) { in BlockDeviceToName()
137 PLOG(ERROR) << "Failed to read link at: " << sysfs_path; in BlockDeviceToName()
/system/core/fs_mgr/libfstab/fuzz/
Dfstab.dict69 "sysfs_path="
/system/core/fs_mgr/libfstab/include/fstab/
Dfstab.h56 std::string sysfs_path; member
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp545 EXPECT_EQ("", entry->sysfs_path); in TEST()
567 EXPECT_EQ("", entry->sysfs_path); in TEST()
1027 EXPECT_EQ("/sys/device", entry->sysfs_path); in TEST()
/system/core/fs_mgr/libfstab/
Dfstab.cpp337 entry->sysfs_path = arg; in ParseFsMgrFlags()