/DragonOS-0.1.9/kernel/src/arch/x86_64/mm/ |
D | bump.rs | 23 let offset_start = page_align_up(core::cmp::max(load_base + 16384, 0x200000)); in arch_remain_areas() 38 let new_start = core::cmp::max(offset_start, area_base); in arch_remain_areas() 39 let new_end = core::cmp::min(offset_end, area_end); in arch_remain_areas()
|
D | mod.rs | 533 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
|
/DragonOS-0.1.9/kernel/crates/klog_types/src/ |
D | lib.rs | 105 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp() 106 Some(self.cmp(other)) in partial_cmp() 111 fn cmp(&self, other: &Self) -> core::cmp::Ordering { in cmp() method 112 return self.id.cmp(&other.id); in cmp()
|
/DragonOS-0.1.9/kernel/src/driver/base/char/ |
D | mod.rs | 152 match item.device_number().major().cmp(&major) { in __register_chardev_region() 153 core::cmp::Ordering::Less => continue, in __register_chardev_region() 154 core::cmp::Ordering::Greater => { in __register_chardev_region() 157 core::cmp::Ordering::Equal => { in __register_chardev_region()
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | kthread.rs | 48 let to_dequeue = core::cmp::min(KEYBUF.len(), TO_DEQUEUE_MAX); in tty_refresh_thread()
|
/DragonOS-0.1.9/kernel/src/driver/base/block/ |
D | block_device.rs | 439 match item.device_number().major().cmp(&major) { in __register_blockdev_region() 440 core::cmp::Ordering::Less => continue, in __register_blockdev_region() 441 core::cmp::Ordering::Greater => { in __register_blockdev_region() 444 core::cmp::Ordering::Equal => { in __register_blockdev_region()
|
/DragonOS-0.1.9/kernel/src/mm/ |
D | mod.rs | 7 cmp, 722 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp() 728 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp() method 729 return self.start.cmp(&other.start); in cmp()
|
D | ucontext.rs | 4 cmp, 741 let region = VirtRegion::new(cmp::max(*hole_vaddr, min_vaddr), *size); in find_free() 1295 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp() 1301 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp() method 1302 return self.region.cmp(&other.region); in cmp()
|
D | memblock.rs | 145 base = core::cmp::min(range_end, end); in do_add_block() 195 end_index = core::cmp::min(end_index, inner.initial_memory_regions_num as isize - 1); in do_merge_blocks()
|
/DragonOS-0.1.9/kernel/src/smp/cpu/ |
D | c_adapter.rs | 55 cpu_info.sort_by(|a, b| a.apic_id.cmp(&b.apic_id)); in rs_smp_get_cpus()
|
/DragonOS-0.1.9/kernel/src/init/ |
D | mod.rs | 1 use core::cmp::min;
|
/DragonOS-0.1.9/kernel/src/driver/base/ |
D | kset.rs | 38 impl core::cmp::Eq for KSet {} 40 impl core::cmp::PartialEq for KSet {
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | rbtree.rs | 14 use core::cmp::Ord; 15 use core::cmp::Ordering; 73 fn cmp(&self, other: &NodePtr<K, V>) -> Ordering { in cmp() method 74 unsafe { (*self.0).key.cmp(&(*other.0).key) } in cmp() 80 unsafe { Some((*self.0).key.cmp(&(*other.0).key)) } in partial_cmp() 1032 match node.cmp(&&mut x) { in insert() 1046 match node.cmp(&&mut y) { in insert() 1070 let next = match k.cmp(&(*temp.0).key) { in find_node()
|
D | elf.rs | 2 cmp::{max, min},
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/ |
D | tsc.rs | 9 cmp::{max, min},
|
/DragonOS-0.1.9/kernel/src/exception/ |
D | sysfs.rs | 158 let len = core::cmp::min(name.len() + 1, buf.len()); in show()
|
/DragonOS-0.1.9/kernel/src/libs/futex/ |
D | futex.rs | 547 let cmp = in futex_atomic_op_inuser() localVariable 573 match cmp { in futex_atomic_op_inuser()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/asm/ |
D | entry.S | 131 cmp $0x3, %rcx
|
/DragonOS-0.1.9/kernel/src/mm/allocator/ |
D | buddy.rs | 11 use core::cmp::min;
|
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/ |
D | vesafb.rs | 351 let len = core::cmp::min(size - pos, buf.len() as i64) as usize; in fb_read() 372 let len = core::cmp::min(size - pos, buf.len() as i64) as usize; in fb_write()
|
/DragonOS-0.1.9/kernel/src/filesystem/kernfs/ |
D | mod.rs | 1 use core::{cmp::min, fmt::Debug, intrinsics::unlikely};
|
/DragonOS-0.1.9/kernel/src/filesystem/fat/ |
D | fs.rs | 51 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp() 1485 let write_size = core::cmp::min(remain_size, buf_size); in resize()
|
/DragonOS-0.1.9/kernel/src/net/ |
D | syscall.rs | 1 use core::cmp::min;
|
/DragonOS-0.1.9/kernel/src/net/socket/ |
D | sockets.rs | 952 let len = core::cmp::min(buf.len(), buffer.len()); in read()
|
/DragonOS-0.1.9/kernel/src/filesystem/vfs/ |
D | syscall.rs | 1096 let len = core::cmp::min(slice.len(), data.len()); in scatter()
|