Home
last modified time | relevance | path

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

/DragonOS/kernel/src/mm/allocator/
H A Dpage_frame.rs54 pub fn iter_range(start: Self, end: Self) -> PhysPageFrameIter { in iter_range()
55 return PhysPageFrameIter::new(start, end); in iter_range()
64 end: PhysPageFrame, field
68 pub fn new(start: PhysPageFrame, end: PhysPageFrame) -> Self { in new()
71 end, in new()
80 if unlikely(self.current == self.end) { in next()
125 pub fn iter_range(start: Self, end: Self) -> VirtPageFrameIter { in iter_range()
128 end, in iter_range()
144 end: VirtPageFrame, field
149 pub fn new(start: VirtPageFrame, end: VirtPageFrame) -> Self { in new()
[all …]
/DragonOS/kernel/src/driver/base/block/
H A Dblock_device.rs64 let end = usize::min(self.lba_end, rhs.lba_end); in intersects_with() localVariable
66 GeneralBlockRange::new(start, end) in intersects_with()
79 pub end: usize, field
91 pub end: usize, // 结束位置在块内的偏移量,单位是字节 field
100 end: end_addr, in new()
108 end: end_addr, in new_multiblock()
121 let end = if lba_id == self.end / blk_size { in next_block() localVariable
122 self.end % blk_size in next_block()
127 self.begin += end - begin; in next_block()
133 end, in next_block()
[all …]
/DragonOS/tools/
H A Dbatch_delete_loop.py4 end = int(input("End at: ")) variable
6 for i in range(start, end+1):
/DragonOS/kernel/src/mm/
H A Dmod.rs725 pub fn end(&self) -> VirtAddr { in end() method
732 pub fn between(start: VirtAddr, end: VirtAddr) -> Option<Self> { in between()
733 if unlikely(end.data() <= start.data()) { in between()
736 let size = end.data() - start.data(); in between()
745 let end = self.end().min(other.end()); in intersect() localVariable
746 return VirtRegion::between(start, end); in intersect()
787 VirtPageFrame::new(self.end()), in iter_pages()
803 return Self::between(region.end(), self.end()); in after()
822 return self.start() <= addr && addr < self.end(); in contains()
829 VirtPageFrame::new(self.end()), in pages()
[all …]
H A Dmemblock.rs111 let end = block.base + block.size; in do_add_block() localVariable
123 if range_base >= end { in do_add_block()
146 base = core::cmp::min(range_end, end); in do_add_block()
149 if base < end { in do_add_block()
156 self.do_insert_area(inner, i, base, end - base, flags); in do_add_block()
278 let end = base + size; in isolate_range() localVariable
293 if range_base >= end { in isolate_range()
312 } else if range_end > end { in isolate_range()
314 inner.initial_memory_regions[idx].base = end; in isolate_range()
315 inner.initial_memory_regions[idx].size -= end - range_base; in isolate_range()
[all …]
H A Dsyscall.rs564 let end = start + len; in msync() localVariable
576 if end < start { in msync()
580 if start == end { in msync()
594 let vm_end = guard.region().end().data(); in msync()
613 let fend = fstart + (core::cmp::min(end, vm_end) - start) - 1; in msync()
629 } else if start >= end { in msync()
639 if start >= end { in msync()
H A Ducontext.rs968 if requested.end() >= MMArch::USER_END_VADDR || !vaddr.check_aligned(MMArch::PAGE_SIZE) { in find_free_at()
1009 if prev_hole_end > region.end() { in reserve_hole()
1012 .insert(region.end(), prev_hole_end - region.end()); in reserve_hole()
1021 let next_hole_size: Option<usize> = self.vm_holes.remove(&region.end()); in unreserve_hole()
1209 assert!(region.end().check_aligned(MMArch::PAGE_SIZE)); in extract()
1214 if unlikely(region.start() < guard.region.start() || region.end() > guard.region.end()) in extract()
1487 VirtPageFrame::new(self.region.end()), in pages()
1668 if address <= self.region.end() { in page_address()
H A Dfault.rs544 let vma_pages_count = (vma_region.end() - vma_region.start()) >> MMArch::PAGE_SHIFT; in do_fault_around()
/DragonOS/kernel/src/ipc/
H A Dpipe.rs238 let mut end = (inode.valid_cnt as usize + inode.read_pos as usize) % PIPE_BUFF_SIZE; in read_at() localVariable
241 end = (len + inode.read_pos as usize) % PIPE_BUFF_SIZE; in read_at()
247 if end < start { in read_at()
249 buf[(PIPE_BUFF_SIZE - start)..num].copy_from_slice(&inode.data[0..end]); in read_at()
251 buf[0..num].copy_from_slice(&inode.data[start..end]); in read_at()
391 let end = (inode.write_pos as usize + len) % PIPE_BUFF_SIZE; in write_at() localVariable
394 if end < start { in write_at()
396 inode.data[0..end].copy_from_slice(&buf[(PIPE_BUFF_SIZE - start)..len]); in write_at()
398 inode.data[start..end].copy_from_slice(&buf[0..len]); in write_at()
/DragonOS/docs/
H A Dmake.bat29 goto end
34 :end label
/DragonOS/kernel/src/perf/
H A Dbpf.rs161 let end = (data_head + data_len) % data_region_len; in write_any() localVariable
163 if start < end { in write_any()
164 data_region[start..end].copy_from_slice(data); in write_any()
168 data_region[0..end].copy_from_slice(&data[first_len..]); in write_any()
170 Ok(end) in write_any()
/DragonOS/kernel/src/libs/
H A Dkeyboard_parser.rs203 scancode_status.end = true; in handle_func0()
209 scancode_status.end = false; in handle_func0()
450 end: bool, field
479 end: false, in new()
H A Delf.rs121 end: VirtAddr, in set_elf_brk()
125 let end = self.elf_page_align_up(end); in set_elf_brk() localVariable
127 if end > start { in set_elf_brk()
130 end - start, in set_elf_brk()
142 user_vm_guard.elf_brk_start = end; in set_elf_brk()
143 user_vm_guard.elf_brk = end; in set_elf_brk()
906 let end = range.end; in get_bytes() localVariable
908 .ok_or(elf::ParseError::SliceReadError((start, end))) in get_bytes()
H A 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()
/DragonOS/kernel/crates/ida/src/
H A Dlib.rs124 fn do_find_first_free_index(&self, start_id: usize, end: usize) -> Option<usize> { in do_find_first_free_index()
125 (start_id..end).find(|&i| !self.exists(i)) in do_find_first_free_index()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs423 let end = bottom * vc_data.cols; in con_scroll() localVariable
424 vc_data.screen_buf[start..end].rotate_left(count * vc_data.cols); in con_scroll()
451 let end = bottom * vc_data.cols; in con_scroll() localVariable
452 vc_data.screen_buf[start..end].rotate_left(count * vc_data.cols); in con_scroll()
458 let end = start + vc_data.cols; in con_scroll() localVariable
462 while offset < end { in con_scroll()
514 let end = bottom * vc_data.cols; in con_scroll() localVariable
515 vc_data.screen_buf[start..end].rotate_right(count * vc_data.cols); in con_scroll()
/DragonOS/kernel/src/filesystem/procfs/
H A Dmod.rs278 let end = pdata.data.len().min(offset + len); in proc_read() localVariable
281 if buf.len() < (end - start) { in proc_read()
286 let src = &pdata.data[start..end]; in proc_read()
532 let end = inode.data.len().min(offset + len); in read_at() localVariable
535 if buf.len() < (end - start) { in read_at()
540 let src = &inode.data[start..end]; in read_at()
/DragonOS/kernel/src/exception/
H A Dsoftirq.rs195 let end = clock() + 500 * 2; in do_softirq() localVariable
237 if clock() < end && max_restart > 0 { in do_softirq()
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs219 let end = inode.data.len().min(offset + len); in read_at() localVariable
222 if buf.len() < (end - start) { in read_at()
227 let src = &inode.data[start..end]; in read_at()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md108 the end of the packet data area. So the program first loads those pointers from
118 start and the end of the packet data memory area.
124 offset values at which the eBPF program expects to find the start and the end
127 static buffer, at the appointed offsets, for the start and the end of the
167 number) at which the pointers to the beginning and to the end, respectively, of
344 // we store the pointers to packet data start and end in it.
389 the packet data start and end addresses. So here we just provide the offsets at
446 // and end must be stored: these are the offsets at which the program will
/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs749 let end: (Cluster, u64) = *offsets.last().unwrap(); localVariable
751 let offset = fs.cluster_bytes_offset(end.0) + end.1;
755 short_dentry.convert_to_dir_entry_with_long_name(long_name.to_string(), (start, end))