Lines Matching refs:dev_root_inode
103 let dev_root_inode: Arc<LockedDevFSInode> = self.root_inode.clone(); in register_device() localVariable
108 if let Err(_) = dev_root_inode.find("char") { in register_device()
109 dev_root_inode.create("char", FileType::Dir, 0o755)?; in register_device()
112 let any_char_inode = dev_root_inode.find("char")?; in register_device()
122 dev_root_inode.add_dev(name, device.clone())?; in register_device()
127 if let Err(_) = dev_root_inode.find("block") { in register_device()
128 dev_root_inode.create("block", FileType::Dir, 0o755)?; in register_device()
131 let any_block_inode = dev_root_inode.find("block")?; in register_device()
154 let dev_root_inode: Arc<LockedDevFSInode> = self.root_inode.clone(); in unregister_device() localVariable
158 if let Err(_) = dev_root_inode.find("char") { in unregister_device()
162 let any_char_inode = dev_root_inode.find("char")?; in unregister_device()
171 if let Err(_) = dev_root_inode.find("block") { in unregister_device()
175 let any_block_inode = dev_root_inode.find("block")?; in unregister_device()