Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 30) sorted by relevance

12

/DragonOS-0.1.8/docs/
Dindex.rst13 introduction/index
21 kernel/boot/index
22 kernel/core_api/index
23 kernel/locking/index
24 kernel/process_management/index
25 kernel/sched/index
26 kernel/ipc/index
27 kernel/memory_management/index
28 kernel/filesystem/index
29 kernel/debug/index
[all …]
/DragonOS-0.1.8/kernel/src/debug/traceback/
Dtraceback.c12 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.8/user/apps/shell/
Dcmd.c115 void shell_run_built_in_command(int index, int argc, char **argv) in shell_run_built_in_command() argument
117 if (index >= total_built_in_cmd_num) in shell_run_built_in_command()
121 shell_cmds[index].func(argc, argv); in shell_run_built_in_command()
154 int index = current_dir_len - 1; in shell_cmd_cd() local
155 for (; index > 1; --index) in shell_cmd_cd()
157 if (shell_current_path[index] == '/') in shell_cmd_cd()
160 shell_current_path[index] = '\0'; in shell_cmd_cd()
619 int index = 0; // 当前访问的是buf的第几位 in parse_command() local
621 while (index < INPUT_BUFFER_SIZE && buf[index] == ' ') in parse_command()
622 ++index; in parse_command()
[all …]
Dcmd.h34 void shell_run_built_in_command(int index, int argc, char **argv);
/DragonOS-0.1.8/docs/userland/libc/
Dindex.rst9 apis/index
10 design/index
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs130 for index in (CHARDEV_MAJOR_DYN_END..CHARDEV_MAJOR_HASH_SIZE).rev() { in find_dynamic_major()
131 if let Some(item) = chardevs.0.get(index) { in find_dynamic_major()
133 return Ok(index); // 返回可用的主设备号 in find_dynamic_major()
138 for index in (CHARDEV_MAJOR_DYN_EXT_END + 1..CHARDEV_MAJOR_DYN_EXT_START + 1).rev() { in find_dynamic_major()
139 if let Some(chardevss) = chardevs.0.get(Self::major_to_index(index)) { in find_dynamic_major()
142 if item.device_number().major() == index { in find_dynamic_major()
149 return Ok(index); // 返回可用的主设备号 in find_dynamic_major()
215 for (index, item) in items.iter().enumerate() { in __register_chardev_region()
216 insert_index = index; in __register_chardev_region()
253 for (index, item) in items.iter().enumerate() { in __unregister_chardev_region()
[all …]
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dtextui.c68 …(vline)->index = 0; …
151 vline->index = 0; in __textui_new_line()
184 vline->chars[vline->index].c = character; in __textui_putchar_window()
185 vline->chars[vline->index].FRcolor = FRcolor & 0xffffff; in __textui_putchar_window()
186 vline->chars[vline->index].BKcolor = BKcolor & 0xffffff; in __textui_putchar_window()
187 ++vline->index; in __textui_putchar_window()
188 textui_refresh_characters(window, window->vline_operating, vline->index - 1, 1); in __textui_putchar_window()
191 if (vline->index > window->chars_per_line) in __textui_putchar_window()
242 int space_to_print = 8 - window->vlines.chromatic[window->vline_operating].index % 8; in textui_putchar_window()
252 --(window->vlines.chromatic[window->vline_operating].index); in textui_putchar_window()
[all …]
Dtextui.h75 int16_t index; // 当前操作的位置 member
85 int16_t index; // 当前操作的位置 member
Dtextui-render.c22 static void __textui_render_chromatic(uint16_t actual_line, uint16_t index, struct textui_char_chro…
110 static void __textui_render_chromatic(uint16_t actual_line, uint16_t index, struct textui_char_chro… in __textui_render_chromatic() argument
130 uint32_t x = index * TEXTUI_CHAR_WIDTH; in __textui_render_chromatic()
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/
Dapic.c487 ul apic_ioapic_read_rte(unsigned char index) in apic_ioapic_read_rte() argument
492 *apic_ioapic_map.virtual_index_addr = index + 1; in apic_ioapic_read_rte()
500 *apic_ioapic_map.virtual_index_addr = index; in apic_ioapic_read_rte()
514 void apic_ioapic_write_rte(unsigned char index, ul value) in apic_ioapic_write_rte() argument
517 *apic_ioapic_map.virtual_index_addr = index; in apic_ioapic_write_rte()
525 *apic_ioapic_map.virtual_index_addr = index + 1; in apic_ioapic_write_rte()
534 ul index = 0x10 + ((irq_num - 32) << 1); in apic_ioapic_enable() local
535 ul value = apic_ioapic_read_rte(index); in apic_ioapic_enable()
537 apic_ioapic_write_rte(index, value); in apic_ioapic_enable()
542 ul index = 0x10 + ((irq_num - 32) << 1); in apic_ioapic_disable() local
[all …]
Dapic.h272 ul apic_ioapic_read_rte(unsigned char index);
280 void apic_ioapic_write_rte(unsigned char index, ul value);
/DragonOS-0.1.8/docs/kernel/memory_management/
Dmmio.md158index)与内存块的大小有关。由于每个内存块大小都为$2^{n}$ bytes,那么可以令$exp = n$。index与exp的换算公式如下:$index = exp - 12$。e.g. 一…
187 | __exp2index(exp) | 将$2^{exp}$的exp转换成内存池中的数组的下标(index) |
/DragonOS-0.1.8/docs/kernel/filesystem/
Doverview.md70 &emsp;&emsp;关于接口的具体含义,可以参考 [DragonOS系统调用接口](../../syscall_api/index.rst)。
84 &emsp;&emsp;关于VFS的详细介绍,请见[DragonOS虚拟文件系统](vfs/index.rst)。
Dindex.rst13 vfs/index
/DragonOS-0.1.8/docs/kernel/cpu_arch/
Dindex.rst10 x86_64/index
/DragonOS-0.1.8/kernel/src/libs/
Dkeyboard_parser.rs306 let index = scancode & 0x7f; in handle_type3() localVariable
311 match index { in handle_type3()
352 if index >= 0x10 && index <= 0x19 { in handle_type3()
354 } else if index >= 0x1e && index <= 0x26 { in handle_type3()
356 } else if index >= 0x2c && index <= 0x32 { in handle_type3()
361 let ch = TYPE1_KEY_CODE_MAPTABLE[col as usize + 2 * index as usize]; in handle_type3()
Dnotifier.rs33 let mut index: usize = 0; in register() localVariable
55 index += 1; in register()
59 self.0.insert(index, block); in register()
/DragonOS-0.1.8/kernel/src/process/
Dfork.rs52 for (index, x) in unsafe { (*current_pcb().sighand).action } in process_copy_sighand()
58 sig.action[index] = in process_copy_sighand()
62 sig.action[index] = DEFAULT_SIGACTION; in process_copy_sighand()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs1853 Some(index) => { in new()
1857 Self::copy_part(&mut short_name[..Self::SHORT_NAME_LEN], &name[..index]); in new()
1862 &name[index + 1..], in new()
2112 index: u8, field
2120 index: 0, in new()
2129 let index: u8 = longname_dentry.ord & 0x1f; in process() localVariable
2131 if index == 0 { in process()
2138 self.index = index; in process()
2141 .resize(index as usize * LongDirEntry::LONG_NAME_STR_LEN, 0); in process()
2142 } else if self.index == 0 in process()
[all …]
/DragonOS-0.1.8/docs/introduction/
Dbuild_system.md143 registry = \"https://github.com/rust-lang/crates.io-index\" \n \
147 registry = \"https://gitee.com/DragonOS/crates.io-index.git\" \n \
Dfeatures.md97 &emsp;&emsp;[请见系统调用文档](https://docs.dragonos.org/zh_CN/latest/syscall_api/index.html)
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dtransport_pci.rs242 let index = offset_bytes / size_of::<u16>(); in notify() localVariable
243 addr_of_mut!((*self.notify_region.as_ptr())[index]).vwrite(queue); in notify()
/DragonOS-0.1.8/kernel/src/mm/
Dpage.rs152 pub unsafe fn next_level_table(&self, index: usize) -> Option<Self> { in next_level_table()
159 self.entry_base(index)?, in next_level_table()
160 self.entry(index)?.address().ok()?, in next_level_table()
/DragonOS-0.1.8/user/apps/test_bind/
Dlink.lds202 .stab.index 0 : { *(.stab.index) }
/DragonOS-0.1.8/user/apps/test_fstat/
Dlink.lds202 .stab.index 0 : { *(.stab.index) }

12