Home
last modified time | relevance | path

Searched refs:sysfs_fd (Results 1 – 2 of 2) sorted by relevance

/aosp12/system/apex/apexd/
H A Dapexd_loop.cpp95 unique_fd sysfs_fd(open(sysfs_device.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureReadAhead() local
96 if (sysfs_fd.get() == -1) { in ConfigureReadAhead()
101 write(sysfs_fd.get(), kReadAheadKb, strlen(kReadAheadKb) + 1)); in ConfigureReadAhead()
281 unique_fd sysfs_fd; in WaitForDevice() local
288 sysfs_fd.reset(open(device.c_str(), O_RDWR | O_CLOEXEC)); in WaitForDevice()
289 if (sysfs_fd.get() != -1) { in WaitForDevice()
290 return LoopbackDeviceUniqueFd(std::move(sysfs_fd), device); in WaitForDevice()
/aosp12/system/core/fs_mgr/
H A Dblockdev.cpp149 unique_fd sysfs_fd(open(sysfs_path.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureQueueDepth() local
150 if (sysfs_fd == -1) { in ConfigureQueueDepth()
154 const int res = write(sysfs_fd.get(), nr_requests.data(), nr_requests.length()); in ConfigureQueueDepth()