/DragonOS-0.1.8/kernel/src/libs/ |
D | lazy_init.rs | 79 (*self.value.get()).as_mut_ptr().write(value); in init() 86 pub fn get(&self) -> &T { in get() method 111 return &*(*self.value.get()).as_ptr(); in get_unchecked() 116 return &mut *(*self.value.get()).as_mut_ptr(); in get_mut_unchecked() 125 return self.get(); in deref() 150 (*self.value.get()).as_mut_ptr().drop_in_place(); in drop()
|
D | rwlock.rs | 91 return self.data.get(); in as_mut_ptr() 142 data: unsafe { &*self.data.get() }, in inner_try_read() 199 data: unsafe { &mut *self.data.get() }, in inner_try_write() 238 data: unsafe { &mut *self.data.get() }, in inner_try_upgradeable_read() 277 unsafe { &mut *self.data.get() } in get_mut() 330 data: unsafe { &mut *inner.data.get() }, in try_upgrade() 366 data: unsafe { &*inner.data.get() }, in downgrade() 419 data: unsafe { &*inner.data.get() }, in downgrade() 441 data: unsafe { &*inner.data.get() }, in downgrade_to_upgradeable()
|
D | spinlock.rs | 193 unsafe { &mut *this.lock.data.get() } in leak() 267 return unsafe { &*self.lock.data.get() }; in deref() 274 return unsafe { &mut *self.lock.data.get() }; in deref_mut()
|
D | mutex.rs | 154 return unsafe { &*self.lock.data.get() }; in deref() 161 return unsafe { &mut *self.lock.data.get() }; in deref_mut()
|
D | rbtree.rs | 424 .all(|(key, value)| other.get(key).map_or(false, |v| *value == *v)) in eq() 443 self.get(index).expect("no entry found for key") in index() 1162 pub fn get(&self, k: &K) -> Option<&V> { in get() method 1431 assert_eq!(*m.get(&1).unwrap(), 2); in test_insert() 1432 assert_eq!(*m.get(&2).unwrap(), 4); in test_insert() 1433 assert_eq!(*m.get(&2).unwrap(), 4); in test_insert() 1444 assert_eq!(*m.get(&2).unwrap(), 6); in test_replace() 1457 assert_eq!(*m2.get(&1).unwrap(), 2); in test_clone() 1458 assert_eq!(*m2.get(&2).unwrap(), 4); in test_clone() 1491 let r = m.get(&j); in test_lots_of_insertions() [all …]
|
/DragonOS-0.1.8/tools/ |
D | grub_auto_install.sh | 24 if ! hash 2>/dev/null apt-get; then 38 sudo apt-get update 39 sudo apt-get install -y \
|
D | Dockerfile | 47 RUN apt-get autoremove -q -y && \ 48 apt-get clean -q -y && \
|
D | build_gcc_toolchain.sh | 80 sudo apt-get install -y \
|
D | bootstrap.sh | 186 elif hash 2>/dev/null apt-get; then
|
/DragonOS-0.1.8/kernel/src/driver/base/map/ |
D | mod.rs | 71 match map.get(rm_dev_t) { in kobj_unmap() 87 if let Some(map) = domain.0.lock().0.get(dev_t.major() % 255) { in kobj_lookup() 88 match map.get(&dev_t) { in kobj_lookup()
|
/DragonOS-0.1.8/user/port/binutils/2.38/ |
D | Dockerfile | 6 RUN apt-get update && apt-get install -y \
|
D | build.sh | 26 sudo apt-get install -y \
|
/DragonOS-0.1.8/kernel/src/time/ |
D | timekeep.rs | 21 let r = rtc_time.get(); in ktime_get_real()
|
/DragonOS-0.1.8/user/port/gcc/11.3.0/ |
D | build-hosted.sh | 28 sudo apt-get install -y \
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | percpu.rs | 77 pub fn get(&self) -> &T { in get() method
|
/DragonOS-0.1.8/kernel/src/driver/base/device/ |
D | bus.rs | 151 bus_manager.buses.get(id_table).cloned() in get_bus() 161 return bus_manager.bus_drvs.get(id_table).cloned(); in get_driver()
|
D | driver.rs | 91 driver_manager.drivers.get(id_table).cloned() in get_driver()
|
/DragonOS-0.1.8/kernel/src/driver/net/ |
D | virtio_net.rs | 45 unsafe { &*self.0.get() } in deref() 50 unsafe { &mut *self.0.get() } in deref_mut() 56 unsafe { &mut *self.0.get() } in force_get_mut()
|
/DragonOS-0.1.8/kernel/src/driver/timers/rtc/ |
D | rtc.rs | 35 pub fn get(&mut self) -> Result<i32, SystemError> { in get() method
|
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/ |
D | mod.rs | 325 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in unlink() 343 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in rmdir() 390 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find() 414 .filter(|k| inode.children.get(*k).unwrap().0.lock().metadata.inode_id == ino) in get_entry_name()
|
/DragonOS-0.1.8/kernel/src/driver/base/char/ |
D | mod.rs | 131 if let Some(item) = chardevs.0.get(index) { in find_dynamic_major() 139 if let Some(chardevss) = chardevs.0.get(Self::major_to_index(index)) { in find_dynamic_major()
|
/DragonOS-0.1.8/kernel/src/net/ |
D | socket.rs | 79 if let None = listen_table_guard.get(&port) { in get_ephemeral_port() 103 match listen_table_guard.get(&port) { in get_port() 336 let iface = NET_DRIVERS.read().get(&0).unwrap().clone(); in write() 573 let socket = sockets.get::<udp::Socket>(self.handle.0); in poll() 607 let socket = sockets.get::<udp::Socket>(self.handle.0); in endpoint() 816 let iface: Arc<dyn NetDriver> = NET_DRIVERS.write().get(&0).unwrap().clone(); in connect() 967 let socket = sockets.get::<tcp::Socket>(self.handle.0); in endpoint() 977 let socket = sockets.get::<tcp::Socket>(self.handle.0); in peer_endpoint()
|
D | net_core.rs | 42 let net_face = binding.get(&0).ok_or(SystemError::ENODEV)?.clone(); in dhcp_query()
|
/DragonOS-0.1.8/kernel/src/driver/base/platform/ |
D | mod.rs | 79 return device_map.get(id_table).cloned(); in get_device() 89 return driver_map.get(id_table).cloned(); in get_driver()
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
D | mod.rs | 227 .filter(|k| inode.children.get(*k).unwrap().metadata().unwrap().inode_id == ino) in get_entry_name() 260 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()
|