Home
last modified time | relevance | path

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

12

/DragonOS-0.1.8/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.rs91 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()
Dspinlock.rs193 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()
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 …]
/DragonOS-0.1.8/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.sh80 sudo apt-get install -y \
Dbootstrap.sh186 elif hash 2>/dev/null apt-get; then
/DragonOS-0.1.8/kernel/src/driver/base/map/
Dmod.rs71 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/
DDockerfile6 RUN apt-get update && apt-get install -y \
Dbuild.sh26 sudo apt-get install -y \
/DragonOS-0.1.8/kernel/src/time/
Dtimekeep.rs21 let r = rtc_time.get(); in ktime_get_real()
/DragonOS-0.1.8/user/port/gcc/11.3.0/
Dbuild-hosted.sh28 sudo apt-get install -y \
/DragonOS-0.1.8/kernel/src/mm/
Dpercpu.rs77 pub fn get(&self) -> &T { in get() method
/DragonOS-0.1.8/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()
/DragonOS-0.1.8/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.8/kernel/src/driver/timers/rtc/
Drtc.rs35 pub fn get(&mut self) -> Result<i32, SystemError> { in get() method
/DragonOS-0.1.8/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.8/kernel/src/driver/base/char/
Dmod.rs131 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/
Dsocket.rs79 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()
Dnet_core.rs42 let net_face = binding.get(&0).ok_or(SystemError::ENODEV)?.clone(); in dhcp_query()
/DragonOS-0.1.8/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.8/kernel/src/filesystem/sysfs/
Dmod.rs227 .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()

12