Lines Matching refs:device
101 device: Arc<T>, in register_device()
104 let metadata = device.metadata()?; in register_device()
118 dev_char_inode.add_dev(name, device.clone())?; in register_device()
122 dev_root_inode.add_dev(name, device.clone())?; in register_device()
124 device.set_fs(dev_char_inode.0.lock().fs.clone()); in register_device()
137 dev_block_inode.add_dev(name, device.clone())?; in register_device()
138 device.set_fs(dev_block_inode.0.lock().fs.clone()); in register_device()
152 device: Arc<T>, in unregister_device()
155 match device.metadata().unwrap().file_type { in unregister_device()
523 pub fn devfs_register<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_register()
524 return devfs_exact_ref!().register_device(name, device); in devfs_register()
529 pub fn devfs_unregister<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), SystemError> { in devfs_unregister()
530 return devfs_exact_ref!().unregister_device(name, device); in devfs_unregister()