Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapexd_loop.cpp92 unique_fd sysfs_fd(open(sysfs_device.c_str(), O_RDWR | O_CLOEXEC)); in configureReadAhead() local
93 if (sysfs_fd.get() == -1) { in configureReadAhead()
98 write(sysfs_fd.get(), kReadAheadKb, strlen(kReadAheadKb) + 1)); in configureReadAhead()
252 unique_fd sysfs_fd; in createLoopDevice() local
254 sysfs_fd.reset(open(device.c_str(), O_RDWR | O_CLOEXEC)); in createLoopDevice()
255 if (sysfs_fd.get() != -1) { in createLoopDevice()
262 if (sysfs_fd.get() == -1) { in createLoopDevice()
265 device_fd = LoopbackDeviceUniqueFd(std::move(sysfs_fd), device); in createLoopDevice()