Home
last modified time | relevance | path

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

1234

/DragonOS/docs/
H A Dconf.py94 html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
97 if os.environ.get("READTHEDOCS", "") == "True":
100 if os.environ.get("SPHINX_MULTIVERSION_GIT_COMMIT", "") != "":
102 elif os.environ.get("CURRENT_GIT_COMMIT_HASH", "") != "":
109 if os.environ.get("CURRENT_GIT_COMMIT_DIRTY", "") == "1":
/DragonOS/kernel/src/libs/
H A Dlock_free_flags.rs25 (self.inner.get().as_ref().unwrap() as *const T as *mut T) in get_mut()
31 pub fn get(&self) -> &T { in get() method
32 unsafe { self.inner.get().as_ref().unwrap() } in get()
41 unsafe { Self::new(self.get().clone()) } in clone()
48 .field("inner", self.get()) in fmt()
H A 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()
H A Dspinlock.rs48 unsafe { &mut *this.lock.data.get() } in leak()
108 data: unsafe { &mut *self.data.get() }, in try_lock()
134 data: unsafe { &mut *self.data.get() }, in try_lock_irqsave()
148 data: unsafe { &mut *self.data.get() }, in try_lock_no_preempt()
H A Drwlock.rs96 return self.data.get(); in as_mut_ptr()
146 data: unsafe { &*self.data.get() }, in inner_try_read()
246 data: unsafe { &mut *self.data.get() }, in inner_try_write()
316 data: unsafe { &mut *self.data.get() }, in inner_try_upgradeable_read()
371 unsafe { &mut *self.data.get() } in get_mut()
376 unsafe { &*self.data.get() } in force_get_ref()
429 data: unsafe { &mut *inner.data.get() }, in try_upgrade()
466 data: unsafe { &*inner.data.get() }, in downgrade()
520 data: unsafe { &*inner.data.get() }, in downgrade()
544 data: unsafe { &*inner.data.get() }, in downgrade_to_upgradeable()
H A Drbtree.rs427 .all(|(key, value)| other.get(key).map_or(false, |v| *value == *v)) in eq()
438 self.get(index).expect("no entry found for key") in index()
1149 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()
1445 assert_eq!(*m.get(&2).unwrap(), 6); in test_replace()
1459 assert_eq!(*m2.get(&1).unwrap(), 2); in test_clone()
1460 assert_eq!(*m2.get(&2).unwrap(), 4); in test_clone()
1496 let r = m.get(&j); in test_lots_of_insertions()
[all …]
H A Dmutex.rs153 return unsafe { &*self.lock.data.get() }; in deref()
160 return unsafe { &mut *self.lock.data.get() }; in deref_mut()
H A Dcpumask.rs73 pub fn get(&self, cpu: ProcessorId) -> Option<bool> { in get() method
74 self.bmp.get(cpu.data() as usize) in get()
/DragonOS/build-scripts/kernel_build/src/kconfig/
H A Dmod.rs113 if let Some(features) = dcfg_table.get("module").unwrap().get("features") { in parse_d_config()
115 let name = f.get("name").unwrap().as_str().unwrap().to_string(); in parse_d_config()
116 let enable = f.get("enable").unwrap().as_str().unwrap().to_string() == "y"; in parse_d_config()
135 if let Some(include) = cfg_table.get("module").unwrap().get("include") { in include()
137 let name = module.get("name").unwrap().as_str().unwrap().to_string(); in include()
138 let path = PathBuf::from(module.get("path").unwrap().as_str().unwrap()); in include()
139 let enable = module.get("enable").unwrap().as_str().unwrap() == "y"; in include()
/DragonOS/kernel/src/debug/kprobe/
H A Dmod.rs64 self.break_list.get(&address) in get_break_list()
68 self.debug_list.get(&address) in get_debug_list()
82 .get(&address) in break_list_len()
89 .get(&address) in debug_list_len()
153 let existed_point = KPROBE_POINT_LIST.lock().get(&address).map(Clone::clone); in register_kprobe()
/DragonOS/kernel/src/arch/x86_64/init/
H A Dmultiboot2.rs63 .get() in init_bootloader_name()
73 if let Some(v1_tag) = MB2_INFO.get().rsdp_v1_tag() { in init_acpi_args()
77 } else if let Some(v2_tag) = MB2_INFO.get().rsdp_v2_tag() { in init_acpi_args()
88 .get() in init_kernel_cmdline()
103 let Some(Ok(fb_tag)) = MB2_INFO.get().framebuffer_tag() else { in early_init_framebuffer_info()
142 let mb2_info = MB2_INFO.get(); in early_init_memory_blocks()
218 let mb2_info = MB2_INFO.get(); in setup_kernel_load_base()
/DragonOS/.github/workflows/
H A Ddocs.yml25 sudo apt-get update
26 sudo apt-get install -y python3-pip
H A Ddocs-multiversion.yml27 sudo apt-get update
28 sudo apt-get install -y python3-pip python3-setuptools
/DragonOS/kernel/crates/bitmap/src/
H A Dbitmap_core.rs18 pub(crate) fn get(&self, n: usize, data: &[T], index: usize) -> Option<bool> { in get() method
26 let element = data.get(element_index)?; in get()
27 let bit = <T as BitOps>::get(element, bit_index); in get()
134 let element = data.get(element_index)?; in next_index()
157 let element = data.get(element_index)?; in next_false_index()
179 let element = data.get(element_index)?; in prev_index()
197 let element = data.get(element_index)?; in prev_false_index()
H A Dstatic_bitmap.rs44 fn get(&self, index: usize) -> Option<bool> { in get() function
45 return self.core.get(N, &self.data, index); in get()
H A Dalloc_bitmap.rs33 fn get(&self, index: usize) -> Option<bool> { in get() method
34 return self.core.get(self.elements, &self.data, index); in get()
H A Dtraits.rs7 fn get(bits: &Self, index: usize) -> bool; in get() method
33 fn get(bits: &Self, index: usize) -> bool {
219 fn get(&self, index: usize) -> Option<bool>; in get() method
/DragonOS/user/port/binutils/2.38/
H A DDockerfile6 RUN apt-get update && apt-get install -y \
H A Dbuild.sh26 sudo apt-get install -y \
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs49 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 { in get() function
200 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u8) } in dst_reg()
211 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 4u8) as u8) } in src_reg()
1017 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } in gpl_compatible()
1565 unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u64) } in disabled()
1576 unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u64) } in inherit()
1587 unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u64) } in pinned()
1598 unsafe { ::core::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u64) } in exclusive()
1609 unsafe { ::core::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u64) } in exclude_user()
1620 unsafe { ::core::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u64) } in exclude_kernel()
[all …]
/DragonOS/kernel/src/arch/x86_64/init/pvh/
H A Dmod.rs34 let rsdp_paddr = PhysAddr::new(START_INFO.get().rsdp_paddr as usize); in init_acpi_args()
45 MMArch::phys_2_virt(PhysAddr::new(START_INFO.get().cmdline_paddr as usize)) in init_kernel_cmdline()
66 let start_info = START_INFO.get(); in early_init_memory_blocks()
/DragonOS/kernel/src/net/socket/
H A Dinet.rs161 let iface = NET_DEVICES.read_irqsave().get(&0).unwrap().clone(); in write()
409 let socket = sockets.get::<udp::Socket>(self.handle.smoltcp_handle().unwrap()); in poll()
415 .get(&self.socket_handle()) in poll()
450 let socket = sockets.get::<udp::Socket>(self.handle.smoltcp_handle().unwrap()); in endpoint()
580 let socket = socketset_guard.get::<tcp::Socket>(sh); in tcp_poll_listening()
621 .get(&self.socket_handle()) in read()
685 .get(&self.socket_handle()) in write()
735 let handle_item = handle_map_guard.get(&self.socket_handle()).unwrap(); in poll()
756 let iface: Arc<dyn NetDevice> = NET_DEVICES.write_irqsave().get(&0).unwrap().clone(); in connect()
839 let handle = self.handles.get(i).unwrap(); in listen()
[all …]
/DragonOS/kernel/src/driver/base/map/
H A Dmod.rs94 if map.get(rm_dev_t).is_some() { in kobj_unmap()
107 if let Some(map) = domain.0.lock().0.get((dev_t.major().data() % 255) as usize) { in kobj_lookup()
108 match map.get(&dev_t) { in kobj_lookup()
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/
H A Dlogset.rs68 pub fn get(&self, key: &K) -> Option<&V> { in get() method
69 self.inner.get(key) in get()
/DragonOS/user/apps/test-backlog/src/
H A Dmain.rs28 HttpServer::new(|| App::new().route("/", web::get().to(index))) in main()

1234