Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapexd_loop.cpp80 unique_fd sysfs_fd(open(sysfs_device.c_str(), O_RDWR | O_CLOEXEC)); in configureReadAhead() local
81 if (sysfs_fd.get() == -1) { in configureReadAhead()
86 write(sysfs_fd.get(), kReadAheadKb, strlen(kReadAheadKb) + 1)); in configureReadAhead()
171 unique_fd sysfs_fd; in createLoopDevice() local
173 sysfs_fd.reset(open(device.c_str(), O_RDWR | O_CLOEXEC)); in createLoopDevice()
174 if (sysfs_fd.get() != -1) { in createLoopDevice()
181 if (sysfs_fd.get() == -1) { in createLoopDevice()
184 device_fd = LoopbackDeviceUniqueFd(std::move(sysfs_fd), device); in createLoopDevice()