Searched refs:sysfs_fd (Results 1 – 2 of 2) sorted by relevance
/system/apex/apexd/ |
D | apexd_loop.cpp | 88 unique_fd sysfs_fd(open(sysfs_path.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureScheduler() local 89 if (sysfs_fd.get() == -1) { in ConfigureScheduler() 109 ret = write(sysfs_fd.get(), scheduler.data(), scheduler.size()); in ConfigureScheduler() 228 unique_fd sysfs_fd(open(sysfs_path.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureQueueDepth() local 229 if (sysfs_fd.get() == -1) { in ConfigureQueueDepth() 243 if (!WriteStringToFd(StringPrintf("%u", *qd), sysfs_fd) && in ConfigureQueueDepth() 257 unique_fd sysfs_fd(open(sysfs_device.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureReadAhead() local 258 if (sysfs_fd.get() == -1) { in ConfigureReadAhead() 263 write(sysfs_fd.get(), kReadAheadKb, strlen(kReadAheadKb) + 1)); in ConfigureReadAhead() 460 unique_fd sysfs_fd(open(device.c_str(), O_RDWR | O_CLOEXEC)); in WaitForDevice() local [all …]
|
/system/core/fs_mgr/ |
D | blockdev.cpp | 144 unique_fd sysfs_fd(open(sysfs_path.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureQueueDepth() local 145 if (sysfs_fd == -1) { in ConfigureQueueDepth() 149 const int res = write(sysfs_fd.get(), nr_requests.data(), nr_requests.length()); in ConfigureQueueDepth()
|