/DragonOS-0.1.7/kernel/src/driver/base/platform/ |
D | mod.rs | 104 drivers.insert(id_table.clone(), driver.clone()); in register_platform_driver() 133 devices.insert(id_table.clone(), device.clone()); in register_platform_device() 163 match driver.probe(device.clone()) { in driver_match_device() 192 match driver.probe(device.clone()) { in device_match_driver() 244 return self.0.lock().sys_info.clone(); in sys_info() 371 return self.0.lock().sys_info.clone(); in sys_info() 384 bus_register(platform_device.clone()).map_err(|e| e.into())?; in platform_bus_init() 386 platform_device.set_driver(Some(platform_driver.clone())); in platform_bus_init() 387 bus_driver_register(platform_driver.clone()).map_err(|e| e.into())?; in platform_bus_init()
|
/DragonOS-0.1.7/kernel/src/filesystem/devfs/ |
D | mod.rs | 38 return self.root_inode.clone(); in root_inode() 85 let dev_root: Arc<LockedDevFSInode> = self.root_inode.clone(); in register_bultinin_device() 103 let dev_root_inode: Arc<LockedDevFSInode> = self.root_inode.clone(); 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() 154 let dev_root_inode: Arc<LockedDevFSInode> = self.root_inode.clone(); in unregister_device() 307 parent: guard.self_ref.clone(), in do_create_with_data() [all …]
|
D | null_dev.rs | 81 return Ok(self.0.lock().metadata.clone()); in metadata()
|
D | zero_dev.rs | 81 return Ok(self.0.lock().metadata.clone()); in metadata()
|
/DragonOS-0.1.7/kernel/src/filesystem/vfs/ |
D | file.rs | 271 return self.inode.clone(); in inode() 279 inode: self.inode.clone(), in try_clone() 280 offset: self.offset.clone(), in try_clone() 281 mode: self.mode.clone(), in try_clone() 282 file_type: self.file_type.clone(), in try_clone() 283 readdir_subdirs_name: self.readdir_subdirs_name.clone(), in try_clone() 284 private_data: self.private_data.clone(), in try_clone() 347 pub fn clone(&self) -> Box<FileDescriptorVec> { in clone() method
|
D | mount.rs | 80 return self.inner_filesystem.clone(); in inner_filesystem() 177 return self.mount_fs.clone(); in fs() 209 mount_fs: self.mount_fs.clone(), in create() 276 mount_fs: self.mount_fs.clone(), in find() 288 mount_fs: self.mount_fs.clone(), in find() 335 .insert(metadata.inode_id, new_mount_fs.clone()); in mount()
|
D | core.rs | 45 return __ROOT_INODE.as_ref().unwrap().clone(); in ROOT_INODE() 151 do_migrate(new_root_inode.clone(), "proc", proc)?; in migrate_virtual_filesystem() 152 do_migrate(new_root_inode.clone(), "dev", dev)?; in migrate_virtual_filesystem() 153 do_migrate(new_root_inode.clone(), "sys", sys)?; in migrate_virtual_filesystem() 179 .clone(); in mount_root_fs() 386 let errno = inode.clone().unwrap_err(); in do_unlink_at()
|
/DragonOS-0.1.7/kernel/src/filesystem/sysfs/ |
D | mod.rs | 36 return __SYS_DEVICES_INODE.as_ref().unwrap().clone(); in SYS_DEVICES_INODE() 45 return __SYS_BUS_INODE.as_ref().unwrap().clone(); in SYS_BUS_INODE() 54 return __SYS_CLASS_INODE.as_ref().unwrap().clone(); in SYS_CLASS_INODE() 63 return __SYS_FS_INODE.as_ref().unwrap().clone(); in SYS_FS_INODE() 80 return self.root_inode.clone(); in root_inode() 199 return Ok(self.0.lock().metadata.clone()); in metadata() 258 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find() 302 parent: guard.self_ref.clone(), in do_create_with_data() 321 fs: guard.fs.clone(), in do_create_with_data() 328 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data() [all …]
|
/DragonOS-0.1.7/kernel/src/driver/base/device/ |
D | bus.rs | 170 return self.0.lock().sys_info.clone(); in sys_info() 178 BUS_MANAGER.add_bus(bus.get_id_table(), bus.clone()); in bus_register() 193 BUS_MANAGER.add_bus(bus.get_id_table(), bus.clone()); in bus_unregister() 201 BUS_MANAGER.add_driver(bus_driver.get_id_table(), bus_driver.clone()); in bus_driver_register() 210 BUS_MANAGER.add_driver(bus_driver.get_id_table(), bus_driver.clone()); in bus_driver_unregister()
|
D | mod.rs | 183 return self.0.lock().sys_info.clone(); in sys_info() 211 DEVICE_MANAGER.add_device(device.get_id_table(), device.clone()); in device_register() 225 DEVICE_MANAGER.add_device(device.get_id_table(), device.clone()); in device_unregister()
|
D | driver.rs | 100 return self.0.lock().sys_info.clone(); in get_sys_info()
|
/DragonOS-0.1.7/kernel/src/ipc/ |
D | syscall.rs | 21 let read_file = File::new(pipe_ptr.clone(), FileMode::O_RDONLY); in do_pipe() 22 let write_file = File::new(pipe_ptr.clone(), FileMode::O_WRONLY); in do_pipe()
|
/DragonOS-0.1.7/kernel/src/driver/net/ |
D | virtio_net.rs | 28 fn clone(&self) -> Self { in clone() method 30 inner: self.inner.clone(), in clone() 152 VirtioNetToken::new(self.clone(), Some(buf)), in receive() 153 VirtioNetToken::new(self.clone(), None), in receive() 164 return Some(VirtioNetToken::new(self.clone(), None)); in transmit() 231 NET_DRIVERS.write().insert(iface.nic_id(), iface.clone()); in virtio_net() 258 return self.name.clone(); in name()
|
/DragonOS-0.1.7/kernel/src/libs/ |
D | rbtree.rs | 65 fn clone(&self) -> NodePtr<K, V> { in clone() method 161 let mut temp = self.clone(); in min_node() 170 let mut temp = self.clone(); in max_node() 242 unsafe { (*self.0).parent.clone() } in parent() 250 unsafe { (*self.0).left.clone() } in left() 258 unsafe { (*self.0).right.clone() } in right() 274 let mut node = NodePtr::new((*self.0).key.clone(), (*self.0).value.clone()); in deep_clone() 356 fn clone(&self) -> RBTree<K, V> { in clone() method 482 fn clone(&self) -> Keys<'a, K, V> { in clone() method 484 inner: self.inner.clone(), in clone() [all …]
|
/DragonOS-0.1.7/kernel/src/filesystem/fat/ |
D | entry.rs | 549 self.check_existence(name, Some(false), fs.clone()); in create_file() 573 fs.clone(), in create_file() 588 self.check_existence(name, Some(true), fs.clone()); in create_dir() 646 fs.clone(), in create_dir() 677 self.find_entry(name, expect_dir, Some(&mut sng), fs.clone()); in check_existence() 720 short_dentry.name = short_name.clone(); 731 self.find_free_entries(num_entries, fs.clone())?; 738 FATDirEntryOffsetIter::new(fs.clone(), start_loc, num_entries, None).collect(); 746 long_entry.flush(fs.clone(), bytes_offset)?; 788 let e: FATDirEntry = self.find_entry(name, None, None, fs.clone())?; in remove() [all …]
|
D | fs.rs | 115 self.metadata.size = d.size(&self.fs.upgrade().unwrap().clone()) as i64; in update_metadata() 129 return Ok(entry.clone()); in find() 139 self.self_ref.clone(), in find() 144 .insert(name.to_uppercase(), entry_inode.clone()); in find() 230 return self.root_inode.clone(); in root_inode() 253 let bpb = BiosParameterBlock::new(partition.clone())?; in new() 261 partition.clone(), in new() 1461 return Ok(self.0.lock().metadata.clone()); in metadata() 1489 guard.self_ref.clone(), in list() 1495 .insert(name.to_uppercase(), entry_inode.clone()); in list() [all …]
|
/DragonOS-0.1.7/kernel/src/process/ |
D | process.rs | 160 let new_fd_vec: &mut FileDescriptorVec = Box::leak(old_fds.clone()); in copy_files() 374 let state: &mut FpState = Box::leak(Box::new(s.clone())); in rs_dup_fpstate() 412 File::new(tty_inode.clone(), FileMode::O_RDONLY).expect("Init stdio: can't create stdin"); in init_stdio() 414 File::new(tty_inode.clone(), FileMode::O_WRONLY).expect("Init stdio: can't create stdout"); in init_stdio() 415 let stderr = File::new(tty_inode.clone(), FileMode::O_WRONLY | FileMode::O_SYNC) in init_stdio()
|
/DragonOS-0.1.7/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 26 .clone(); 51 f_ops: f_ops.clone(), // 从引用复制一遍获取所有权 in new() 157 return Ok(self.0.read().metadata.clone()); in metadata()
|
/DragonOS-0.1.7/kernel/src/filesystem/ramfs/ |
D | mod.rs | 58 return self.root_inode.clone(); in root_inode() 202 let mut metadata = inode.metadata.clone(); in metadata() 250 parent: inode.self_ref.clone(), in create_with_data() 270 fs: inode.fs.clone(), in create_with_data() 277 inode.children.insert(String::from(name), result.clone()); in create_with_data() 390 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()
|
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/ |
D | mod.rs | 141 LockedAhciInode::new(disks_list.last().unwrap().clone()), in ahci_rust_init() 166 return disks_list.clone(); in disks() 175 return Ok(disks_list[i].clone()); in get_disks_by_name()
|
/DragonOS-0.1.7/docs/introduction/ |
D | build_system.md | 17 git clone https://github.com/DragonOS-Community/DragonOS 23 然后通过以下命令来克隆代码,防止频繁出现git clone、pull、push失败的情况。 26 git clone git@github.com:DragonOS-Community/DragonOS.git
|
/DragonOS-0.1.7/kernel/src/driver/tty/ |
D | tty_device.rs | 73 return self.private_data.read().name.clone(); in name() 229 return Ok(self.private_data.read().metadata.clone()); in metadata() 309 guard.insert("tty0".to_string(), tty.clone()); in tty_init()
|
/DragonOS-0.1.7/kernel/src/net/ |
D | socket.rs | 47 fn clone(&self) -> Self { in clone() method 214 let iface = NET_DRIVERS.read().get(&0).unwrap().clone(); in write() 278 return Box::new(self.clone()); in box_clone() 468 return Box::new(self.clone()); in box_clone() 493 return self.remote_endpoint.clone(); in peer_endpoint() 673 let iface: Arc<dyn NetDriver> = NET_DRIVERS.write().get(&0).unwrap().clone(); in connect() 809 self.local_endpoint.clone().map(|x| Endpoint::Ip(Some(x))); in endpoint() 832 return Box::new(self.clone()); in box_clone()
|
/DragonOS-0.1.7/kernel/src/filesystem/procfs/ |
D | mod.rs | 218 return self.root_inode.clone(); in root_inode() 441 let metadata = inode.metadata.clone(); in metadata() 489 parent: inode.self_ref.clone(), in create_with_data() 509 fs: inode.fs.clone(), in create_with_data() 520 inode.children.insert(String::from(name), result.clone()); in create_with_data() 602 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()
|
/DragonOS-0.1.7/docs/kernel/filesystem/ |
D | sysfs.md | 98 BUS_MANAGER.add_bus(bus.get_id_table(), bus.clone());
|