Home
last modified time | relevance | path

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

/packages/modules/Virtualization/libs/devicemapper/src/
Dloopdevice.rs51 fn loop_configure(device_file: &File, config: &loop_config) -> Result<i32> { in loop_configure()
53 Ok(unsafe { _loop_configure(device_file.as_raw_fd(), config) }?) in loop_configure()
56 pub fn loop_clr_fd(device_file: &File) -> Result<i32> { in loop_clr_fd()
59 Ok(unsafe { _loop_clr_fd(device_file.as_raw_fd()) }?) in loop_clr_fd()
161 let device_file = OpenOptions::new() in try_attach() localVariable
166 loop_configure(&device_file, &config) in try_attach()
169 Ok(LoopDevice { file: device_file, path: PathBuf::from(device_path) }) in try_attach()
174 let device_file = OpenOptions::new().read(true).write(true).open(&path)?; in detach() localVariable
175 loop_clr_fd(&device_file)?; in detach()
/packages/modules/adb/
Dtest_device.py1291 device_file = posixpath.join(device_dir, 'file')
1302 self.device._simple_call(['push', '-n', host_file, device_file])
1303 rc, _, _ = self.device.shell_nocheck(['[', '-e', device_file, ']'])
1318 device_file = posixpath.join(device_dir, 'file')
1322 self.device.shell(['echo', 'foo', '>', device_file])
1329 self.device._simple_call(['push', '-n', host_file, device_file])
1330 stdout, stderr = self.device.shell(['cat', device_file])