/DragonOS-0.1.9/kernel/src/mm/ |
D | mod.rs | 593 start: VirtAddr, field 600 pub fn new(start: VirtAddr, size: usize) -> Self { in new() 601 VirtRegion { start, size } in new() 606 pub fn start(&self) -> VirtAddr { in start() method 607 self.start in start() 613 return self.start().add(self.size); in end() 619 pub fn between(start: VirtAddr, end: VirtAddr) -> Option<Self> { in between() 620 if unlikely(end.data() <= start.data()) { in between() 623 let size = end.data() - start.data(); in between() 624 return Some(VirtRegion::new(start, size)); in between() [all …]
|
D | ucontext.rs | 179 VirtPageFrame::new(vma_guard.region.start()), in try_clone() 347 let page = VirtPageFrame::new(region.start()); in mmap() 793 self.vm_holes.range_mut(..=region.start()).next_back(); in reserve_hole() 798 if prev_hole_end > region.start() { in reserve_hole() 800 *prev_hole_size = region.start().data() - prev_hole_vaddr.data(); in reserve_hole() 819 .range_mut(..region.start()) in unreserve_hole() 821 .filter(|(offset, size)| offset.data() + **size == region.start().data()) in unreserve_hole() 826 .insert(region.start(), region.size() + next_hole_size.unwrap_or(0)); in unreserve_hole() 974 assert!(region.start().check_aligned(MMArch::PAGE_SIZE)); in extract() 980 if unlikely(region.start() < guard.region.start() || region.end() > guard.region.end()) in extract() [all …]
|
/DragonOS-0.1.9/docs/userland/appdev/ |
D | index.rst | 9 rust-quick-start 10 c-cpp-quick-start
|
/DragonOS-0.1.9/tools/ |
D | batch_delete_loop.py | 3 start = int(input("Start from: ")) variable 6 for i in range(start, end+1):
|
/DragonOS-0.1.9/kernel/src/mm/allocator/ |
D | page_frame.rs | 52 pub fn iter_range(start: Self, end: Self) -> PhysPageFrameIter { in iter_range() 53 return PhysPageFrameIter::new(start, end); in iter_range() 66 pub fn new(start: PhysPageFrame, end: PhysPageFrame) -> Self { in new() 68 current: start, in new() 123 pub fn iter_range(start: Self, end: Self) -> VirtPageFrameIter { in iter_range() 125 current: start, in iter_range() 147 pub fn new(start: VirtPageFrame, end: VirtPageFrame) -> Self { in new() 149 current: start, in new()
|
/DragonOS-0.1.9/kernel/src/ipc/ |
D | pipe.rs | 201 let start = inode.read_pos as usize; in read_at() localVariable 212 if end < start { in read_at() 213 buf[0..(PIPE_BUFF_SIZE - start)].copy_from_slice(&inode.data[start..PIPE_BUFF_SIZE]); in read_at() 214 buf[(PIPE_BUFF_SIZE - start)..num].copy_from_slice(&inode.data[0..end]); in read_at() 216 buf[0..num].copy_from_slice(&inode.data[start..end]); in read_at() 361 let start = inode.write_pos as usize; in write_at() localVariable 365 if end < start { in write_at() 366 inode.data[start..PIPE_BUFF_SIZE].copy_from_slice(&buf[0..(PIPE_BUFF_SIZE - start)]); in write_at() 367 inode.data[0..end].copy_from_slice(&buf[(PIPE_BUFF_SIZE - start)..len]); in write_at() 369 inode.data[start..end].copy_from_slice(&buf[0..len]); in write_at()
|
/DragonOS-0.1.9/kernel/src/driver/tty/virtual_terminal/ |
D | virtual_console.rs | 1155 let start; in csi_J() localVariable 1161 start = self.pos; in csi_J() 1166 start = 0; in csi_J() 1171 start = 0; in csi_J() 1177 start = 0; in csi_J() 1184 for i in self.screen_buf[start..(start + count)].iter_mut() { in csi_J() 1189 self.do_update_region(start, count) in csi_J() 1203 let start; in csi_K() localVariable 1209 start = self.pos; in csi_K() 1214 start = self.pos - self.state.x; in csi_K() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/fbcon/ |
D | framebuffer_console.rs | 418 let start = top * vc_data.cols; in con_scroll() localVariable 420 vc_data.screen_buf[start..end].rotate_left(count * vc_data.cols); in con_scroll() 446 let start = top * vc_data.cols; in con_scroll() localVariable 448 vc_data.screen_buf[start..end].rotate_left(count * vc_data.cols); in con_scroll() 450 let data = &vc_data.screen_buf[start..(bottom - count) * vc_data.cols]; in con_scroll() 453 let mut start = line * vc_data.cols; in con_scroll() localVariable 454 let end = start + vc_data.cols; in con_scroll() 455 let mut offset = start; in con_scroll() 465 let count = offset - start; in con_scroll() 468 &data[start..offset], in con_scroll() [all …]
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | elf.rs | 120 start: VirtAddr, in set_elf_brk() 124 let start = self.elf_page_start(start); in set_elf_brk() localVariable 127 if end > start { in set_elf_brk() 129 start, in set_elf_brk() 130 end - start, in set_elf_brk() 906 let start = range.start; in get_bytes() localVariable 909 .ok_or(elf::ParseError::SliceReadError((start, end))) in get_bytes()
|
/DragonOS-0.1.9/kernel/src/driver/input/serio/ |
D | serio_device.rs | 29 fn start(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in start() method
|
/DragonOS-0.1.9/kernel/src/libs/lib_ui/ |
D | textui.rs | 406 let start = count; in textui_refresh_character() localVariable 417 count = TextuiBuf::get_index_of_next_line(start); in textui_refresh_character() 580 start: LineIndex, in textui_refresh_characters() 588 || (<LineIndex as Into<i32>>::into(start) + count) > self.chars_per_line, in textui_refresh_characters() 604 let mut index = start; in textui_refresh_characters() 640 fn textui_refresh_vlines(&mut self, start: LineId, count: i32) -> Result<i32, SystemError> { in textui_refresh_vlines() 642 for i in <LineId as Into<i32>>::into(start) in textui_refresh_vlines() 643 ..(self.vline_sum).min(<LineId as Into<i32>>::into(start) + count) in textui_refresh_vlines()
|
/DragonOS-0.1.9/kernel/src/filesystem/procfs/ |
D | mod.rs | 254 let start = _pdata.data.len().min(offset); in proc_read() localVariable 258 if buf.len() < (end - start) { in proc_read() 263 let src = &_pdata.data[start..end]; in proc_read() 484 let start = inode.data.len().min(offset); in read_at() localVariable 488 if buf.len() < (end - start) { in read_at() 493 let src = &inode.data[start..end]; in read_at()
|
/DragonOS-0.1.9/kernel/src/filesystem/fat/ |
D | entry.rs | 108 let mut start = 0; in read() localVariable 136 &mut buf[start..start + end_len], in read() 141 start += r; in read() 179 let mut start: usize = 0; in write() localVariable 204 &buf[start..start + end_len], in write() 209 start += w; in write() 753 let start: (Cluster, u64) = offsets[0]; localVariable 759 return Ok(short_dentry.to_dir_entry_with_long_name(long_name.to_string(), (start, end))); 2296 start: (Cluster, u64), in new() 2301 current_offset: start, in new()
|
/DragonOS-0.1.9/kernel/src/driver/disk/ahci/ |
D | hba.rs | 146 pub fn start(&mut self) { in start() method 245 self.start(); // 重新开启端口 in init()
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | tty_core.rs | 120 let _ = self.start(self.core()); in tty_start() 451 fn start(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in start() method 452 return self.core().tty_driver.driver_funcs().start(tty); in start()
|
D | tty_driver.rs | 374 fn start(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in start() method
|
/DragonOS-0.1.9/kernel/src/filesystem/ramfs/ |
D | mod.rs | 169 let start = inode.data.len().min(offset); in read_at() localVariable 173 if buf.len() < (end - start) { in read_at() 178 let src = &inode.data[start..end]; in read_at()
|
/DragonOS-0.1.9/kernel/src/driver/input/serio/i8042/ |
D | i8042_ports.rs | 178 fn start(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError> { in start() method
|
/DragonOS-0.1.9/kernel/src/driver/input/ps2_mouse/ |
D | ps_mouse_device.rs | 504 fn start( in start() method
|
/DragonOS-0.1.9/ |
D | LICENSE | 289 to attach them to the start of each source file to most effectively
|