Home
last modified time | relevance | path

Searched refs:sysfsFd (Results 1 - 1 of 1) sorted by relevance

/base/update/sys_installer/services/module_update/src/
H A Dmodule_loop.cpp161 UniqueFd sysfsFd(open(realPath.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureReadAhead()
162 if (sysfsFd.Get() == -1) { in ConfigureReadAhead()
167 sysfsFd = UniqueFd(open(realPath.c_str(), O_RDWR | O_CLOEXEC)); in ConfigureReadAhead()
168 if (sysfsFd.Get() == -1) { in ConfigureReadAhead()
173 int writeBytes = write(sysfsFd.Get(), READ_AHEAD_KB, strlen(READ_AHEAD_KB) + 1); in ConfigureReadAhead()
289 UniqueFd sysfsFd; in WaitForDevice() local
296 sysfsFd = UniqueFd(open(realPath.c_str(), O_RDWR | O_CLOEXEC)); in WaitForDevice()
297 if (sysfsFd.Get() != -1) { in WaitForDevice()
298 return std::make_unique<LoopbackDeviceUniqueFd>(std::move(sysfsFd), realPath); in WaitForDevice()

Completed in 2 milliseconds