Searched refs:path_to_cstring (Results 1 – 10 of 10) sorted by relevance
5 use crate::util::path_to_cstring;29 let output = path_to_cstring(output)?; in new()43 let file = path_to_cstring(file)?; in add_file()
36 let path_c = util::path_to_cstring(path)?; in open()76 let path_c = util::path_to_cstring(path)?; in pin()
678 let path_c = util::path_to_cstring(path)?; in pin()688 let path_c = util::path_to_cstring(path)?; in unpin()732 let path = util::path_to_cstring(binary_path)?; in attach_uprobe()759 let path = util::path_to_cstring(binary_path)?; in attach_uprobe_with_opts()961 let path = util::path_to_cstring(binary_path)?; in attach_usdt_impl()
192 let path_c = util::path_to_cstring(path)?; in set_pin_path()207 let cstring = util::path_to_cstring(path)?; in reuse_pinned_map()770 let path_c = util::path_to_cstring(path)?; in pin()780 let path_c = util::path_to_cstring(path)?; in unpin()1000 let path_c = util::path_to_cstring(path)?; in pin()
147 self.pin_root_path = Some(util::path_to_cstring(path)?); in pin_root_path()177 let path_c = util::path_to_cstring(path)?; in open_file()
17 pub fn path_to_cstring<P: AsRef<Path>>(path: P) -> Result<CString> { in path_to_cstring() function
165 Ok(AuthFsDirEntry { inode: *inode, name: path_to_cstring(name)?, is_dir: *is_dir }) in retrieve_entries()255 Ok(AuthFsDirEntry { inode: *inode, name: path_to_cstring(name)?, is_dir: *is_dir }) in retrieve_entries()261 fn path_to_cstring(path: &Path) -> io::Result<CString> { in path_to_cstring() function
672 let socket_path_cstring = path_to_cstring(&self.crosvm_control_socket_path); in get_memory_balloon()691 let socket_path_cstring = path_to_cstring(&self.crosvm_control_socket_path); in set_memory_balloon()735 let socket_path_cstring = path_to_cstring(&self.crosvm_control_socket_path); in suspend()747 let socket_path_cstring = path_to_cstring(&self.crosvm_control_socket_path); in resume()1421 fn path_to_cstring(path: &Path) -> CString { in path_to_cstring() function
278 fn path_to_cstring(p: &Path) -> Result<CString> { in path_to_cstring() function284 fn path_to_cstring(p: &Path) -> Result<CString> { in path_to_cstring() function418 let c_path = path_to_cstring(path.as_ref())?; in open_with_flags()441 let c_path = path_to_cstring(path.as_ref())?; in open_with_flags_and_vfs()
199 let dylib_str = super::path_to_cstring(dylib_path)?; in load_extension()