Lines Matching refs:dyn
36 static mut __ROOT_INODE: *mut Arc<dyn IndexNode> = null_mut();
41 pub fn ROOT_INODE() -> Arc<dyn IndexNode> { in ROOT_INODE()
99 new_root_inode: Arc<dyn IndexNode>, in do_migrate()
120 fn migrate_virtual_filesystem(new_fs: Arc<dyn FileSystem>) -> Result<(), i32> { in migrate_virtual_filesystem()
139 let old_root_inode: Box<Arc<dyn IndexNode>> = Box::from_raw(__ROOT_INODE); in migrate_virtual_filesystem()
193 let inode: Result<Arc<dyn IndexNode>, i32> = ROOT_INODE().lookup(path); in do_open()
195 let inode: Arc<dyn IndexNode> = if inode.is_err() { in do_open()
204 let parent_inode: Arc<dyn IndexNode> = in do_open()
207 let inode: Arc<dyn IndexNode> = parent_inode.create(filename, FileType::File, 0o777)?; in do_open()
300 let inode: Result<Arc<dyn IndexNode>, i32> = ROOT_INODE().lookup(path); in do_mkdir()
308 let parent_inode: Arc<dyn IndexNode> = in do_mkdir()
311 let _create_inode: Arc<dyn IndexNode> = in do_mkdir()
329 let inode: Result<Arc<dyn IndexNode>, i32> = ROOT_INODE().lookup(path); in do_remove_dir()
341 let parent_inode: Arc<dyn IndexNode> = ROOT_INODE().lookup(parent_path.unwrap_or("/"))?; in do_remove_dir()
347 let target_inode: Arc<dyn IndexNode> = parent_inode.find(filename)?; in do_remove_dir()
365 let inode: Result<Arc<dyn IndexNode>, i32> = ROOT_INODE().lookup(path); in do_unlink_at()
381 let parent_inode: Arc<dyn IndexNode> = ROOT_INODE().lookup(parent_path.unwrap_or("/"))?; in do_unlink_at()