Lines Matching refs:name

55     fn name(&self) -> &str {  in name()  method
123 name: &str, in register_device()
145 dev_char_inode.add_dev(name, device.clone())?; in register_device()
148 if name.starts_with("tty") && name.len() > 3 { in register_device()
149 dev_root_inode.add_dev(name, device.clone())?; in register_device()
152 if name == "ptmx" { in register_device()
153 dev_root_inode.add_dev(name, device.clone())?; in register_device()
172 dev_block_inode.add_dev(name, device.clone())?; in register_device()
177 .add_dev(name, device.clone()) in register_device()
182 .add_dev(name, device.clone()) in register_device()
196 name: &str, in unregister_device()
213 dev_char_inode.remove(name)?; in unregister_device()
226 dev_block_inode.remove(name)?; in unregister_device()
296 pub fn add_dir(&self, name: &str) -> Result<(), SystemError> { in add_dir()
299 if guard.children.contains_key(&DName::from(name)) { in add_dir()
305 name, in add_dir()
319 pub fn add_dev(&self, name: &str, dev: Arc<dyn IndexNode>) -> Result<(), SystemError> { in add_dev()
321 let name = DName::from(name); in add_dev() localVariable
322 if this.children.contains_key(&name) { in add_dev()
326 this.children.insert(name, dev); in add_dev()
330 pub fn remove(&self, name: &str) -> Result<(), SystemError> { in remove()
335 .remove(&DName::from(name)) in remove()
345 name: &str, in do_create_with_data()
353 let name = DName::from(name); in do_create_with_data() localVariable
355 if guard.children.contains_key(&name) { in do_create_with_data()
381 dname: name.clone(), in do_create_with_data()
388 guard.children.insert(name, result.clone()); in do_create_with_data()
412 name: &str, in create_with_data()
420 return self.do_create_with_data(guard, name, file_type, mode, data); in create_with_data()
423 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find()
430 match name { in find()
437 name => { in find()
441 .get(&DName::from(name)) in find()
600 pub fn devfs_register<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_register()
601 return devfs_exact_ref!().register_device(name, device); in devfs_register()
606 pub fn devfs_unregister<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_unregister()
607 return devfs_exact_ref!().unregister_device(name, device); in devfs_unregister()