/DragonOS/kernel/src/process/ |
H A D | cred.rs | 80 pub fn fscmp(&self, other: Cred) -> CredFsCmp { in fscmp() 81 if *self == other { in fscmp() 85 if self.fsuid < other.fsuid { in fscmp() 88 if self.fsuid > other.fsuid { in fscmp() 92 if self.fsgid < other.fsgid { in fscmp() 95 if self.fsgid > other.fsgid { in fscmp() 99 if self.group_info == other.group_info { in fscmp() 103 if let (Some(ga), Some(gb)) = (&self.group_info, &other.group_info) { in fscmp() 126 if other.group_info.is_none() { in fscmp()
|
H A D | pid.rs | 15 fn eq(&self, other: &PidType) -> bool { in eq() 16 *self as u8 == *other as u8 in eq()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | utils.rs | 89 fn eq(&self, other: &Self) -> bool { in eq() 90 return *self.0 == *other.0; in eq() 102 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp() 103 Some(self.cmp(other)) in partial_cmp() 108 fn cmp(&self, other: &Self) -> Ordering { in cmp() 109 return self.0.cmp(&other.0); in cmp()
|
H A D | mount.rs | 339 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() 340 return self.inner_inode.link(name, other); in link() 611 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp() 612 Some(self.cmp(other)) in partial_cmp() 617 fn cmp(&self, other: &Self) -> core::cmp::Ordering { in cmp() 619 let othe_dep = other.0.chars().filter(|c| *c == '/').count(); in cmp() 623 other.0.cmp(&self.0) in cmp()
|
/DragonOS/kernel/src/libs/ |
H A D | rbtree.rs | 73 fn cmp(&self, other: &NodePtr<K, V>) -> Ordering { in cmp() 74 unsafe { (*self.0).key.cmp(&(*other.0).key) } in cmp() 79 fn partial_cmp(&self, other: &NodePtr<K, V>) -> Option<Ordering> { in partial_cmp() 80 Some(self.cmp(other)) in partial_cmp() 85 fn eq(&self, other: &NodePtr<K, V>) -> bool { in eq() 86 self.0 == other.0 in eq() 421 fn eq(&self, other: &RBTree<K, V>) -> bool { in eq() 422 if self.len() != other.len() { in eq() 427 .all(|(key, value)| other.get(key).map_or(false, |v| *value == *v)) in eq() 1227 let mut other; in delete_fixup() localVariable [all …]
|
/DragonOS/kernel/crates/klog_types/src/ |
H A D | lib.rs | 104 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp() 105 Some(self.cmp(other)) in partial_cmp() 110 fn cmp(&self, other: &Self) -> core::cmp::Ordering { in cmp() 111 return self.id.cmp(&other.id); in cmp()
|
/DragonOS/ |
H A D | .readthedocs.yaml | 7 # Set the OS, Python version and other tools you might need 12 # You can also specify other tool versions:
|
H A D | LICENSE | 16 Foundation's software and to any other program whose authors commit to 17 using it. (Some other Free Software Foundation software is covered by 62 0. This License applies to any program or other work which contains 72 Activities other than copying, distribution and modification are not 84 and give any other recipients of the Program a copy of this License 121 this License, whose permissions for other licensees extend to the 131 a storage or distribution medium does not bring the other work under 198 infringement or for any other reason (not limited to patent issues), 203 License and any other pertinent obligations, then as a consequence you 212 apply and the section as a whole is intended to apply in other [all …]
|
H A D | README_EN.md | 24   DragonOS boasts an excellent and comprehensive architecture design. Compared to other s… 112 …d to: plagiarizing the code of the project as your graduation project and other academic misconduc…
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | mod.rs | 58 pub fn matches(&self, other: &CompatibleTable) -> bool { in matches() 59 self.0.intersection(&other.0).next().is_some() in matches()
|
/DragonOS/kernel/src/mm/ |
H A D | mod.rs | 743 pub fn intersect(&self, other: &VirtRegion) -> Option<VirtRegion> { in intersect() 744 let start = self.start.max(other.start); in intersect() 745 let end = self.end().min(other.end()); in intersect() 780 pub fn collide(&self, other: &VirtRegion) -> bool { in collide() 781 return self.intersect(other).is_some(); in collide() 835 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp() 836 Some(self.cmp(other)) in partial_cmp() 841 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp() 842 return self.start.cmp(&other.start); in cmp()
|
H A D | ucontext.rs | 1094 fn eq(&self, other: &Self) -> bool { in eq() 1095 self.id.eq(&other.id) in eq() 1684 fn eq(&self, other: &Self) -> bool { in eq() 1685 return self.region == other.region; in eq() 1692 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp() 1693 Some(self.cmp(other)) in partial_cmp() 1698 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp() 1699 return self.region.cmp(&other.region); in cmp()
|
/DragonOS/docs/community/code_contribution/ |
H A D | conventional-commit.md | 18 feat: allow provided config object to extend other configs 20 BREAKING CHANGE: `extends` key in config file is now used for extending other config files
|
/DragonOS/kernel/src/sched/ |
H A D | cputime.rs | 81 let other = Self::account_other_time(u64::MAX); in irqtime_account_process_tick() localVariable 83 if other >= cputime { in irqtime_account_process_tick()
|
/DragonOS/kernel/src/namespaces/ |
H A D | ucount.rs | 172 fn eq(&self, other: &Self) -> bool { in eq() 173 Arc::ptr_eq(&self.user_ns, &other.user_ns) && self.uid == other.uid in eq()
|
/DragonOS/kernel/crates/intertrait/macros/ |
H A D | LICENSE-APACHE | 16 other entities that control, are controlled by, or are under common 33 and conversions to other media types. 42 editorial revisions, annotations, elaborations, or other modifications 94 (a) You must give any other recipients of the Work or 162 other commercial damages or losses), even if such Contributor 168 or other liability obligations and/or rights consistent with this 171 of any other Contributor, and only if You agree to indemnify,
|
/DragonOS/kernel/crates/rbpf/ |
H A D | LICENSE-APACHE | 17 other entities that control, are controlled by, or are under common 34 and conversions to other media types. 43 editorial revisions, annotations, elaborations, or other modifications 95 (a) You must give any other recipients of the Work or 163 other commercial damages or losses), even if such Contributor 169 or other liability obligations and/or rights consistent with this 172 of any other Contributor, and only if You agree to indemnify,
|
/DragonOS/kernel/src/driver/base/ |
H A D | kset.rs | 41 fn eq(&self, other: &Self) -> bool { in eq() 42 self.self_ref.as_ptr() == other.self_ref.as_ptr() in eq()
|
/DragonOS/kernel/src/arch/riscv64/ipc/ |
H A D | signal.rs | 61 fn eq(&self, other: &Signal) -> bool { in eq() 62 *self as usize == *other as usize in eq()
|
/DragonOS/kernel/src/time/ |
H A D | mod.rs | 468 fn from(other: ::core::time::Duration) -> Duration { in from() 469 Duration::from_micros(other.as_secs() * 1000000 + other.subsec_micros() as u64) in from()
|
H A D | clocksource.rs | 87 pub fn add(&self, other: CycleNum) -> CycleNum { in add() 88 CycleNum(self.data() + other.data()) in add() 91 pub fn div(&self, other: CycleNum) -> CycleNum { in div() 92 CycleNum(self.data() - other.data()) in div()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 195 fn eq(&self, other: &Self) -> bool { in eq() 196 if self.address_space.is_none() && other.address_space.is_none() { in eq() 197 return self.address == other.address; in eq() 203 .ptr_eq(other.address_space.as_ref().unwrap_or(&Weak::default())) in eq() 204 && self.address == other.address; in eq()
|
/DragonOS/kernel/src/driver/base/device/ |
H A D | driver.rs | 205 let other = bus.find_driver_by_name(&drv_name); in register() localVariable 206 if other.is_some() { in register()
|
/DragonOS/kernel/src/filesystem/ramfs/ |
H A D | mod.rs | 356 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() 357 let other: &LockedRamFSInode = other in link() localVariable 362 let mut other_locked: SpinLockGuard<RamFSInode> = other.0.lock(); in link()
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | mod.rs | 651 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() 652 let other: &LockedProcFSInode = other in link() localVariable 656 let mut other_locked: SpinLockGuard<ProcFSInode> = other.0.lock(); in link()
|