Searched refs:loop_number (Results 1 – 1 of 1) sorted by relevance
/system/update_engine/common/ |
D | test_utils.cc | 112 int loop_number, in SetLoopDeviceStatus() argument 118 device_info.lo_number = loop_number; in SetLoopDeviceStatus() 144 int loop_number = ioctl(control_fd, LOOP_CTL_GET_FREE); in BindToUnusedLoopDeviceLegacy() local 146 *out_lo_dev_name = "/dev/loop" + std::to_string(loop_number); in BindToUnusedLoopDeviceLegacy() 155 makedev(LOOP_MAJOR, loop_number)) == 0); in BindToUnusedLoopDeviceLegacy() 172 return SetLoopDeviceStatus(loop_device_fd, filename, loop_number, writable); in BindToUnusedLoopDeviceLegacy() 191 int loop_number; in BindToUnusedLoopDevice() local 193 sscanf(out_lo_dev_name->c_str(), "/dev/block/loop%d", &loop_number) == 1); in BindToUnusedLoopDevice() 194 return SetLoopDeviceStatus(loop_device_fd, filename, loop_number, writable); in BindToUnusedLoopDevice()
|