/DragonOS-0.1.9/docs/ |
D | index.rst | 13 introduction/index 21 kernel/configuration/index 22 kernel/boot/index 23 kernel/core_api/index 24 kernel/locking/index 25 kernel/process_management/index 26 kernel/sched/index 27 kernel/ipc/index 28 kernel/memory_management/index 29 kernel/filesystem/index [all …]
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | cpumask.rs | 21 .map(|index| ProcessorId::new(index as u32)) in first() 28 .map(|index| ProcessorId::new(index as u32)) in first_zero() 35 .map(|index| ProcessorId::new(index as u32)) in last() 42 .map(|index| ProcessorId::new(index as u32)) in next_index() 49 .map(|index| ProcessorId::new(index as u32)) in next_zero_index() 68 index: ProcessorId::new(0), in iter_cpu() 77 index: ProcessorId::new(0), in iter_zero_cpu() 85 index: ProcessorId, field 93 if self.index.data() == 0 { in next() 95 self.index = self.mask.first()?; in next() [all …]
|
D | keyboard_parser.rs | 277 let index = scancode & 0x7f; in handle_type3() localVariable 282 match index { in handle_type3() 323 if index >= 0x10 && index <= 0x19 { in handle_type3() 325 } else if index >= 0x1e && index <= 0x26 { in handle_type3() 327 } else if index >= 0x2c && index <= 0x32 { in handle_type3() 332 let mut ch = TYPE1_KEY_CODE_MAPTABLE[col as usize + 2 * index as usize]; in handle_type3()
|
/DragonOS-0.1.9/kernel/crates/bitmap/src/ |
D | traits.rs | 7 fn get(bits: &Self, index: usize) -> bool; in get() 8 fn set(bits: &mut Self, index: usize, value: bool) -> bool; in set() 15 fn next_index(bits: &Self, index: usize) -> Option<usize>; in next_index() 16 fn next_false_index(bits: &Self, index: usize) -> Option<usize>; in next_false_index() 17 fn prev_index(bits: &Self, index: usize) -> Option<usize>; in prev_index() 18 fn prev_false_index(bits: &Self, index: usize) -> Option<usize>; in prev_false_index() 33 fn get(bits: &Self, index: usize) -> bool { 34 bits & (1 << index) != 0 38 fn set(bits: &mut Self, index: usize, value: bool) -> bool { 39 let mask = 1 << index; [all …]
|
D | alloc_bitmap.rs | 25 fn get(&self, index: usize) -> Option<bool> { in get() 26 return self.core.get(self.elements, &self.data, index); in get() 30 fn set(&mut self, index: usize, value: bool) -> Option<bool> { in set() 31 return self.core.set(self.elements, &mut self.data, index, value); in set() 65 fn next_index(&self, index: usize) -> Option<usize> { in next_index() 66 self.core.next_index(self.elements, &self.data, index) in next_index() 70 fn next_false_index(&self, index: usize) -> Option<usize> { in next_false_index() 71 self.core.next_false_index(self.elements, &self.data, index) in next_false_index() 75 fn prev_index(&self, index: usize) -> Option<usize> { in prev_index() 76 self.core.prev_index(self.elements, &self.data, index) in prev_index() [all …]
|
D | bitmap_core.rs | 18 pub(crate) fn get(&self, n: usize, data: &[T], index: usize) -> Option<bool> { in get() 19 if unlikely(index >= n) { in get() 23 let element_index = index / T::bit_size(); in get() 24 let bit_index = index % T::bit_size(); in get() 33 pub(crate) fn set(&self, n: usize, data: &mut [T], index: usize, value: bool) -> Option<bool> { in set() 34 if unlikely(index >= n) { in set() 37 let element_index = index / T::bit_size(); in set() 38 let bit_index = index % T::bit_size(); in set() 126 pub(crate) fn next_index(&self, n: usize, data: &[T], index: usize) -> Option<usize> { in next_index() 127 if unlikely(index >= n) { in next_index() [all …]
|
D | static_bitmap.rs | 35 fn get(&self, index: usize) -> Option<bool> { in get() 36 return self.core.get(N, &self.data, index); in get() 40 fn set(&mut self, index: usize, value: bool) -> Option<bool> { in set() 41 return self.core.set(N, &mut self.data, index, value); in set() 75 fn next_index(&self, index: usize) -> Option<usize> { in next_index() 76 self.core.next_index(N, &self.data, index) in next_index() 80 fn next_false_index(&self, index: usize) -> Option<usize> { in next_false_index() 81 self.core.next_false_index(N, &self.data, index) in next_false_index() 85 fn prev_index(&self, index: usize) -> Option<usize> { in prev_index() 86 self.core.prev_index(N, &self.data, index) in prev_index() [all …]
|
/DragonOS-0.1.9/kernel/src/debug/traceback/ |
D | traceback.c | 12 uint64_t index = 0; in lookup_kallsyms() local 13 for (index = 0; index < kallsyms_num - 1; ++index) in lookup_kallsyms() 15 if (addr > kallsyms_address[index] && addr <= kallsyms_address[index + 1]) in lookup_kallsyms() 19 if (index < kallsyms_num) // 找到对应的函数 in lookup_kallsyms() 22 …\t(+) %04d address:%#018lx\n", &str[kallsyms_names_index[index]], addr - kallsyms_address[index], … in lookup_kallsyms()
|
/DragonOS-0.1.9/kernel/src/mm/ |
D | memblock.rs | 172 index: usize, in do_insert_area() 177 let copy_elements = inner.initial_memory_regions_num - index; in do_insert_area() 180 .copy_within(index..index + copy_elements, index + 1); in do_insert_area() 181 inner.initial_memory_regions[index] = PhysMemoryArea::new(base, size, flags); in do_insert_area() 248 fn do_remove_region(&self, inner: &mut SpinLockGuard<'_, InnerMemBlockManager>, index: usize) { in do_remove_region() 249 let copy_elements = inner.initial_memory_regions_num - index - 1; in do_remove_region() 252 .copy_within(index + 1..index + 1 + copy_elements, index); in do_remove_region() 435 index: 0, in to_iter() 445 index: 0, in to_iter_available() 457 pub fn get_initial_memory_region(&self, index: usize) -> Option<PhysMemoryArea> { in get_initial_memory_region() [all …]
|
D | no_init.rs | 69 if let Some(index) = self.bmp.first_false_index() { in allocate_page() 70 self.bmp.set(index, true); in allocate_page() 72 self.pages[index].zero(); in allocate_page() 74 let p = &self.pages[index] as *const EarlyRemapPage as usize; in allocate_page() 87 let index = offset / MMArch::PAGE_SIZE; in free_page() localVariable 88 if index < Self::EARLY_REMAP_PAGES_NUM { in free_page() 89 assert_eq!(self.bmp.get(index).unwrap(), true); in free_page() 90 self.bmp.set(index, false); in free_page()
|
/DragonOS-0.1.9/kernel/src/driver/base/char/ |
D | mod.rs | 59 for index in (DEV_MAJOR_DYN_END.data()..DEV_MAJOR_HASH_SIZE).rev() { in find_dynamic_major() 60 if let Some(item) = chardevs.get(index as usize) { in find_dynamic_major() 62 return Ok(Major::new(index)); // 返回可用的主设备号 in find_dynamic_major() 67 for index in in find_dynamic_major() 70 if let Some(chardevss) = chardevs.get(Self::major_to_index(Major::new(index))) { in find_dynamic_major() 73 if item.device_number().major().data() == index { in find_dynamic_major() 80 return Ok(Major::new(index)); // 返回可用的主设备号 in find_dynamic_major() 150 for (index, item) in items.iter().enumerate() { in __register_chardev_region() 151 insert_index = index; in __register_chardev_region() 187 for (index, item) in items.iter().enumerate() { in __unregister_chardev_region() [all …]
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/process/ |
D | table.rs | 52 let index = (10 + smp_get_processor_id().data() * 2) as u16; in load_tr() localVariable 53 let selector = SegmentSelector::new(index, Ring::Ring0); in load_tr() 56 index, in load_tr() 62 unsafe fn set_tss_descriptor(index: u16, vaddr: VirtAddr) { in set_tss_descriptor() 69 gdt[index as usize] = (LIMIT & 0xffff) in set_tss_descriptor() 74 gdt[index as usize + 1] = ((vaddr >> 32) & 0xffffffff) | 0; in set_tss_descriptor()
|
/DragonOS-0.1.9/tools/debugging/logmonitor/src/ |
D | app.rs | 109 pub index: usize, field 114 TabsState { titles, index: 0 } in new() 117 self.index = (self.index + 1) % self.titles.len(); in next() 121 if self.index > 0 { in previous() 122 self.index -= 1; in previous() 124 self.index = self.titles.len() - 1; in previous()
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | tty_driver.rs | 38 for (index, driver) in drivers_guard.iter().enumerate() { in lookup_tty_driver() 43 return Some((index, driver.clone())); in lookup_tty_driver() 140 pub fn tty_line_name(&self, index: usize) -> String { in tty_line_name() 147 return format!("{}{}", self.name, index + self.name_base); in tty_line_name() 152 self.ttys.lock().insert(tty_core.core().index(), tty_core); in add_tty() 166 fn lockup_tty(&self, index: usize) -> Option<Arc<TtyCore>> { in lockup_tty() 168 return match device_guard.get(&index) { in lockup_tty() 176 let tty_index = tty.index(); in standard_install() 212 fn init_tty_device(driver: Arc<TtyDriver>, index: usize) -> Result<Arc<TtyCore>, SystemError> { in init_tty_device() 213 let tty = TtyCore::new(driver.clone(), index); in init_tty_device() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/base/ |
D | subsys.rs | 167 let index = drivers.iter().position(|d| Arc::ptr_eq(d, driver)); in remove_driver_from_vec() localVariable 168 if let Some(index) = index { in remove_driver_from_vec() 169 drivers.remove(index); in remove_driver_from_vec() 185 let index = devices.iter().position(|d| Arc::ptr_eq(d, device)); in remove_device_from_vec() localVariable 186 if let Some(index) = index { in remove_device_from_vec() 187 devices.remove(index); in remove_device_from_vec()
|
/DragonOS-0.1.9/docs/kernel/memory_management/ |
D | mmio.md | 158 …index)与内存块的大小有关。由于每个内存块大小都为$2^{n}$ bytes,那么可以令$exp = n$。index与exp的换算公式如下:$index = exp - 12$。e.g. 一… 187 | __exp2index(exp) | 将$2^{exp}$的exp转换成内存池中的数组的下标(index) |
|
/DragonOS-0.1.9/kernel/src/driver/base/block/ |
D | block_device.rs | 345 for index in ((DEV_MAJOR_DYN_END.data())..DEV_MAJOR_HASH_SIZE).rev() { in find_dynamic_major() 346 if let Some(item) = blockdevs.get(index as usize) { in find_dynamic_major() 348 return Ok(Major::new(index)); // 返回可用的主设备号 in find_dynamic_major() 353 for index in in find_dynamic_major() 356 if let Some(blockdevss) = blockdevs.get(Self::major_to_index(Major::new(index as u32))) in find_dynamic_major() 360 if item.device_number().major() == Major::new(index as u32) { in find_dynamic_major() 367 return Ok(Major::new(index)); // 返回可用的主设备号 in find_dynamic_major() 437 for (index, item) in items.iter().enumerate() { in __register_blockdev_region() 438 insert_index = index; in __register_blockdev_region() 474 for (index, item) in items.iter().enumerate() { in __unregister_blockdev_region() [all …]
|
/DragonOS-0.1.9/kernel/src/libs/lib_ui/font/ |
D | mod.rs | 48 let index = self.glyph_mapping.index(character); in char_map() localVariable 49 let pos = index * self.bytes_per_char; in char_map()
|
/DragonOS-0.1.9/kernel/src/libs/lib_ui/ |
D | textui.rs | 335 pub fn put_color_in_pixel(&mut self, color: u32, index: usize) { in put_color_in_pixel() 337 buf[index] = color; in put_color_in_pixel() 485 index: LineIndex, // 当前操作的位置 field 491 index: LineIndex::new(0), in new() 604 let mut index = start; in textui_refresh_characters() localVariable 608 vline.chars[<LineIndex as Into<usize>>::into(index)] in textui_refresh_characters() 609 .textui_refresh_character(actual_line_id, index)?; in textui_refresh_characters() 611 index = index + 1; in textui_refresh_characters() 682 vline.index = LineIndex::new(0); in textui_new_line() 720 let index = <LineIndex as Into<usize>>::into(vline.index); in true_textui_putchar_window() localVariable [all …]
|
/DragonOS-0.1.9/docs/kernel/filesystem/ |
D | overview.md | 70   关于接口的具体含义,可以参考 [DragonOS系统调用接口](../../syscall_api/index.rst)。 84   关于VFS的详细介绍,请见[DragonOS虚拟文件系统](vfs/index.rst)。
|
D | index.rst | 13 vfs/index
|
/DragonOS-0.1.9/kernel/src/exception/ |
D | msi.rs | 86 index: u32, field 97 index: u32, in new() 112 index, in new()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/ |
D | hpet.rs | 173 fn timer(&self, index: u8) -> Option<(RwLockReadGuard<InnerHpet>, &HpetTimerRegisters)> { in timer() 175 if index >= self.info.hpet_number { in timer() 182 .add(index as usize) in timer() 191 index: u8, in timer_mut() 194 if index >= self.info.hpet_number { in timer_mut() 201 .add(index as usize) in timer_mut()
|
/DragonOS-0.1.9/docs/kernel/cpu_arch/ |
D | index.rst | 10 x86_64/index
|
/DragonOS-0.1.9/kernel/src/libs/font/font_type/ |
D | vga8x16.rs | 4 index: 1,
|