/DragonOS-0.1.8/kernel/src/io/ |
D | device.rs | 138 buf_slice.copy_from_slice(&temp[range.begin..range.end]); in read_at() 173 temp[range.begin..range.end].copy_from_slice(&buf_slice); in write_at() 191 pub end: usize, field 203 pub end: usize, // 结束位置在块内的偏移量,单位是字节 field 212 end: end_addr, in new() 220 end: end_addr, in new_multiblock() 232 let end = if lba_id == self.end / blk_size { in next_block() localVariable 233 self.end % blk_size in next_block() 238 self.begin += end - begin; in next_block() 244 end: end, in next_block() [all …]
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | page_frame.rs | 42 pub fn iter_range(start: Self, end: Self) -> PhysPageFrameIter { in iter_range() 43 return PhysPageFrameIter::new(start, end); in iter_range() 52 end: PhysPageFrame, field 56 pub fn new(start: PhysPageFrame, end: PhysPageFrame) -> Self { in new() 59 end, in new() 68 if unlikely(self.current == self.end) { in next() 106 pub fn iter_range(start: Self, end: Self) -> VirtPageFrameIter { in iter_range() 109 end, in iter_range() 125 end: VirtPageFrame, field 130 pub fn new(start: VirtPageFrame, end: VirtPageFrame) -> Self { in new() [all …]
|
/DragonOS-0.1.8/tools/ |
D | batch_delete_loop.py | 4 end = int(input("End at: ")) variable 6 for i in range(start, end+1):
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | pipe.rs | 108 let mut end = (inode.valid_cnt as usize + inode.read_pos as usize) % PIPE_BUFF_SIZE; in read_at() localVariable 111 end = (len + inode.read_pos as usize) % PIPE_BUFF_SIZE; in read_at() 117 if end < start { in read_at() 119 buf[(PIPE_BUFF_SIZE - start)..num].copy_from_slice(&inode.data[0..end]); in read_at() 121 buf[0..num].copy_from_slice(&inode.data[start..end]); in read_at() 186 let end = (inode.write_pos as usize + len) % PIPE_BUFF_SIZE; in write_at() localVariable 189 if end < start { in write_at() 191 inode.data[0..end].copy_from_slice(&buf[(PIPE_BUFF_SIZE - start)..len]); in write_at() 193 inode.data[start..end].copy_from_slice(&buf[0..len]); in write_at()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | mod.rs | 487 pub fn end(&self) -> VirtAddr { in end() method 494 pub fn between(start: VirtAddr, end: VirtAddr) -> Option<Self> { in between() 495 if unlikely(end.data() <= start.data()) { in between() 498 let size = end.data() - start.data(); in between() 507 let end = self.end().min(other.end()); in intersect() localVariable 508 return VirtRegion::between(start, end); in intersect() 549 VirtPageFrame::new(self.end()), in iter_pages() 565 return Self::between(region.end(), self.end()); in after() 584 return self.start() <= addr && addr < self.end(); in contains() 591 VirtPageFrame::new(self.end()), in pages() [all …]
|
D | ucontext.rs | 673 if requested.end() >= MMArch::USER_END_VADDR || !vaddr.check_aligned(MMArch::PAGE_SIZE) { in find_free_at() 714 if prev_hole_end > region.end() { in reserve_hole() 717 .insert(region.end(), prev_hole_end - region.end()); in reserve_hole() 726 let next_hole_size: Option<usize> = self.vm_holes.remove(®ion.end()); in unreserve_hole() 886 assert!(region.end().check_aligned(MMArch::PAGE_SIZE)); in extract() 891 if unlikely(region.start() < guard.region.start() || region.end() > guard.region.end()) in extract() 983 VirtPageFrame::new(self.region.end()), in pages()
|
/DragonOS-0.1.8/docs/ |
D | make.bat | 29 goto end 34 :end label
|
/DragonOS-0.1.8/user/libs/libKeyboard/ |
D | keyboard.c | 6 static bool gui_l = 0, gui_r = 0, apps = 0, insert = 0, home = 0, pgup = 0, del = 0, end = 0, pgdn … variable 409 end = true; in keyboard_analyze_keycode() 413 end = false; in keyboard_analyze_keycode()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | elf.rs | 91 end: VirtAddr, in set_elf_brk() 95 let end = self.elf_page_align_up(end); in set_elf_brk() localVariable 96 if end > start { in set_elf_brk() 99 end - start, in set_elf_brk() 109 user_vm_guard.elf_brk_start = end; in set_elf_brk() 110 user_vm_guard.elf_brk = end; in set_elf_brk() 778 let end = range.end; in get_bytes() localVariable 780 .ok_or(elf::ParseError::SliceReadError((start, end))) in get_bytes()
|
D | printk.c | 60 char *str = NULL, *s = NULL, *end = NULL; in __do_vsprintf() local 72 end = buf + buf_size; in __do_vsprintf() 338 if (str < end) in __do_vsprintf() 344 *(end-1) = '\0'; in __do_vsprintf()
|
D | keyboard_parser.rs | 223 scancode_status.end = true; in handle_func0() 226 scancode_status.end = false; in handle_func0() 457 end: bool, field 486 end: false, in new()
|
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/ |
D | stdio.md | 50 ``#define SEEK_END 2 /* Seek relative to end-of-file */``
|
/DragonOS-0.1.8/kernel/src/filesystem/procfs/ |
D | mod.rs | 205 let end = _pdata.data.len().min(offset + len); in read_status() localVariable 208 if buf.len() < (end - start) { in read_status() 213 let src = &_pdata.data[start..end]; in read_status() 399 let end = inode.data.len().min(offset + len); in read_at() localVariable 402 if buf.len() < (end - start) { in read_at() 407 let src = &inode.data[start..end]; in read_at()
|
/DragonOS-0.1.8/kernel/src/exception/ |
D | softirq.rs | 173 let end = clock() + 500 * 2; in do_softirq() localVariable 215 if clock() < end && max_restart > 0 { in do_softirq()
|
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/ |
D | mod.rs | 136 let end = inode.data.len().min(offset + len); in read_at() localVariable 139 if buf.len() < (end - start) { in read_at() 144 let src = &inode.data[start..end]; in read_at()
|
/DragonOS-0.1.8/user/apps/test_bind/ |
D | link.lds | 137 end of ctors marker and it must be last */ 195 _end = .; PROVIDE (end = .); symbol
|
/DragonOS-0.1.8/user/apps/test_fstat/ |
D | link.lds | 137 end of ctors marker and it must be last */ 195 _end = .; PROVIDE (end = .); symbol
|
/DragonOS-0.1.8/user/apps/test_gettimeofday/ |
D | link.lds | 137 end of ctors marker and it must be last */ 195 _end = .; PROVIDE (end = .); symbol
|
/DragonOS-0.1.8/user/apps/http_server/ |
D | link.lds | 137 end of ctors marker and it must be last */ 195 _end = .; PROVIDE (end = .); symbol
|
/DragonOS-0.1.8/user/apps/test_relibc/ |
D | link.lds | 137 end of ctors marker and it must be last */ 195 _end = .; PROVIDE (end = .); symbol
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | entry.rs | 759 let end: (Cluster, u64) = *offsets.last().unwrap(); localVariable 761 let offset = fs.cluster_bytes_offset(end.0) + end.1; 764 return Ok(short_dentry.to_dir_entry_with_long_name(long_name.to_string(), (start, end)));
|