Searched refs:deviceFd (Results 1 - 3 of 3) sorted by relevance
/base/update/sys_installer/services/module_update/include/ |
H A D | module_loop.h | 29 UniqueFd deviceFd; member in OHOS::SysInstaller::Loop::LoopbackDeviceUniqueFd 34 : deviceFd(std::move(fd)), name(name) {} in LoopbackDeviceUniqueFd() 37 : deviceFd(std::move(fd.deviceFd)), name(std::move(fd.name)) {} in move() 41 deviceFd = std::move(other.deviceFd); 55 deviceFd.Release(); in CloseGood() 60 return deviceFd.Get(); in Get()
|
/base/update/sys_installer/services/module_update/src/ |
H A D | module_loop.cpp | 78 if (deviceFd.Get() != -1) { in MaybeCloseBad() 79 int ret = ioctl(deviceFd.Get(), LOOP_CLR_FD); in MaybeCloseBad() 181 bool CheckIfSupportLoopConfigure(const int deviceFd) in CheckIfSupportLoopConfigure() argument 187 return ioctl(deviceFd, LOOP_CONFIGURE, &config) == -1 && errno == EBADF; in CheckIfSupportLoopConfigure() 193 bool ConfigureLoopDevice(const int deviceFd, const int targetFd, struct loop_info64 li, const bool useBufferedIo) in ConfigureLoopDevice() argument 204 int ret = ioctl(deviceFd, LOOP_CONFIGURE, &config); in ConfigureLoopDevice() 215 bool SetLoopDeviceStatus(const int deviceFd, const int targetFd, const struct loop_info64 *li) in SetLoopDeviceStatus() argument 217 int ret = ioctl(deviceFd, LOOP_SET_FD, targetFd); in SetLoopDeviceStatus() 222 ret = ioctl(deviceFd, LOOP_SET_STATUS64, li); in SetLoopDeviceStatus() 227 ret = ioctl(deviceFd, BLKFLSBU in SetLoopDeviceStatus() 238 SetUpLoopDevice(const int deviceFd, const string &target, const uint32_t imageOffset, const uint32_t imageSize) SetUpLoopDevice() argument [all...] |
H A D | module_update.cpp | 57 return loopbackDevice.deviceFd.Get() != -1; in CreateLoopDevice()
|
Completed in 2 milliseconds