Home | History | Annotate | Download | only in common

Lines Matching defs:device_info

179   struct loop_info64 device_info;
180 if (ioctl(loop_device_fd, LOOP_GET_STATUS64, &device_info) != -1 ||
194 memset(&device_info, 0, sizeof(device_info));
195 device_info.lo_offset = 0;
196 device_info.lo_sizelimit = 0; // 0 means whole file.
197 device_info.lo_flags = (writable ? 0 : LO_FLAGS_READ_ONLY);
198 device_info.lo_number = loop_number;
199 strncpy(reinterpret_cast<char*>(device_info.lo_file_name),
202 device_info.lo_file_name[LO_NAME_SIZE - 1] = '\0';
204 ioctl(loop_device_fd, LOOP_SET_STATUS64, &device_info) == 0);
216 struct loop_info64 device_info;
218 int get_stat_err = ioctl(loop_device_fd, LOOP_GET_STATUS64, &device_info);