Home
last modified time | relevance | path

Searched refs:end (Results 1 – 21 of 21) sorted by relevance

/DragonOS-0.1.8/kernel/src/io/
Ddevice.rs138 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/
Dpage_frame.rs42 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/
Dbatch_delete_loop.py4 end = int(input("End at: ")) variable
6 for i in range(start, end+1):
/DragonOS-0.1.8/kernel/src/ipc/
Dpipe.rs108 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/
Dmod.rs487 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 …]
Ducontext.rs673 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(&region.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/
Dmake.bat29 goto end
34 :end label
/DragonOS-0.1.8/user/libs/libKeyboard/
Dkeyboard.c6 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/
Delf.rs91 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()
Dprintk.c60 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()
Dkeyboard_parser.rs223 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/
Dstdio.md50 ``#define SEEK_END 2 /* Seek relative to end-of-file */``
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs205 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/
Dsoftirq.rs173 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/
Dmod.rs136 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/
Dlink.lds137 end of ctors marker and it must be last */
195 _end = .; PROVIDE (end = .); symbol
/DragonOS-0.1.8/user/apps/test_fstat/
Dlink.lds137 end of ctors marker and it must be last */
195 _end = .; PROVIDE (end = .); symbol
/DragonOS-0.1.8/user/apps/test_gettimeofday/
Dlink.lds137 end of ctors marker and it must be last */
195 _end = .; PROVIDE (end = .); symbol
/DragonOS-0.1.8/user/apps/http_server/
Dlink.lds137 end of ctors marker and it must be last */
195 _end = .; PROVIDE (end = .); symbol
/DragonOS-0.1.8/user/apps/test_relibc/
Dlink.lds137 end of ctors marker and it must be last */
195 _end = .; PROVIDE (end = .); symbol
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs759 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)));