Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 29) sorted by relevance

12

/DragonOS-0.1.7/kernel/src/libs/
Dlazy_init.rs79 (*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()
Drwlock.rs88 return self.data.get(); in as_mut_ptr()
130 data: unsafe { &*self.data.get() }, in try_read()
175 data: unsafe { &mut *self.data.get() }, in try_write()
204 data: unsafe { &mut *self.data.get() }, in try_upgradeable_read()
243 unsafe { &mut *self.data.get() } in get_mut()
289 data: unsafe { &mut *inner.data.get() }, in try_upgrade()
325 data: unsafe { &*inner.data.get() }, in downgrade()
364 data: unsafe { &*inner.data.get() }, in downgrade()
386 data: unsafe { &*inner.data.get() }, in downgrade_to_upgradeable()
Dmutex.rs154 return unsafe { &*self.lock.data.get() }; in deref()
161 return unsafe { &mut *self.lock.data.get() }; in deref_mut()
Drbtree.rs424 .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 …]
Dspinlock.rs233 return unsafe { &*self.lock.data.get() }; in deref()
240 return unsafe { &mut *self.lock.data.get() }; in deref_mut()
/DragonOS-0.1.7/tools/
Dgrub_auto_install.sh24 if ! hash 2>/dev/null apt-get; then
38 sudo apt-get update
39 sudo apt-get install -y \
DDockerfile47 RUN apt-get autoremove -q -y && \
48 apt-get clean -q -y && \
Dbuild_gcc_toolchain.sh77 sudo apt-get install -y \
Dbootstrap.sh184 elif hash 2>/dev/null apt-get; then
/DragonOS-0.1.7/user/port/binutils/2.38/
DDockerfile6 RUN apt-get update && apt-get install -y \
Dbuild.sh26 sudo apt-get install -y \
/DragonOS-0.1.7/user/port/gcc/11.3.0/
Dbuild-hosted.sh28 sudo apt-get install -y \
/DragonOS-0.1.7/kernel/src/time/
Dtimekeep.rs21 let r = rtc_time.get(); in ktime_get_real()
/DragonOS-0.1.7/kernel/src/driver/base/device/
Dbus.rs151 bus_manager.buses.get(id_table).cloned() in get_bus()
161 return bus_manager.bus_drvs.get(id_table).cloned(); in get_driver()
Ddriver.rs91 driver_manager.drivers.get(id_table).cloned() in get_driver()
Dmod.rs174 device_manager.devices.get(id_table).cloned() in get_device()
/DragonOS-0.1.7/kernel/src/driver/timers/rtc/
Drtc.rs34 pub fn get(&mut self) -> Result<i32, SystemError> { in get() method
/DragonOS-0.1.7/kernel/src/driver/net/
Dvirtio_net.rs45 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.7/kernel/src/filesystem/ramfs/
Dmod.rs325 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.7/kernel/src/net/
Dsocket.rs214 let iface = NET_DRIVERS.read().get(&0).unwrap().clone(); in write()
439 let socket = sockets.get::<udp::Socket>(self.handle.0); in poll()
473 let socket = sockets.get::<udp::Socket>(self.handle.0); in endpoint()
673 let iface: Arc<dyn NetDriver> = NET_DRIVERS.write().get(&0).unwrap().clone(); in connect()
813 let socket = sockets.get::<tcp::Socket>(self.handle.0); in endpoint()
823 let socket = sockets.get::<tcp::Socket>(self.handle.0); in peer_endpoint()
Dnet_core.rs39 let net_face = binding.get(&0).ok_or(SystemError::ENODEV)?.clone(); in dhcp_query()
/DragonOS-0.1.7/kernel/src/driver/base/platform/
Dmod.rs79 return device_map.get(id_table).cloned(); in get_device()
89 return driver_map.get(id_table).cloned(); in get_driver()
/DragonOS-0.1.7/kernel/src/filesystem/sysfs/
Dmod.rs225 .filter(|k| inode.children.get(*k).unwrap().metadata().unwrap().inode_id == ino) in get_entry_name()
258 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()
/DragonOS-0.1.7/kernel/src/driver/keyboard/
Dps2_keyboard.rs24 .get("tty0")
/DragonOS-0.1.7/kernel/src/filesystem/procfs/
Dmod.rs568 let to_delete = inode.children.get(name).ok_or(SystemError::ENOENT)?; in unlink()
602 return Ok(inode.children.get(name).ok_or(SystemError::ENOENT)?.clone()); in find()
626 .filter(|k| inode.children.get(*k).unwrap().0.lock().metadata.inode_id == ino) in get_entry_name()

12