Home
last modified time | relevance | path

Searched refs:other (Results 1 – 25 of 29) sorted by relevance

12

/DragonOS/kernel/src/process/
H A Dcred.rs80 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 Dpid.rs15 fn eq(&self, other: &PidType) -> bool { in eq()
16 *self as u8 == *other as u8 in eq()
/DragonOS/kernel/src/filesystem/vfs/
H A Dutils.rs89 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 Dmount.rs321 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link()
322 return self.inner_inode.link(name, other); in link()
584 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp()
585 Some(self.cmp(other)) in partial_cmp()
590 fn cmp(&self, other: &Self) -> core::cmp::Ordering { in cmp()
592 let othe_dep = other.0.chars().filter(|c| *c == '/').count(); in cmp()
596 other.0.cmp(&self.0) in cmp()
/DragonOS/kernel/src/libs/
H A Drbtree.rs73 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()
422 fn eq(&self, other: &RBTree<K, V>) -> bool { in eq()
423 if self.len() != other.len() { in eq()
428 .all(|(key, value)| other.get(key).map_or(false, |v| *value == *v)) in eq()
1228 let mut other; in delete_fixup() localVariable
[all …]
/DragonOS/kernel/crates/klog_types/src/
H A Dlib.rs105 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()
112 return self.id.cmp(&other.id); in cmp()
/DragonOS/
H A D.readthedocs.yaml7 # Set the OS, Python version and other tools you might need
12 # You can also specify other tool versions:
H A DLICENSE16 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 DREADME_EN.md24 &emsp;&emsp;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 Dmod.rs58 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 Dmod.rs743 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 Ducontext.rs1089 fn eq(&self, other: &Self) -> bool { in eq()
1090 self.id.eq(&other.id) in eq()
1679 fn eq(&self, other: &Self) -> bool { in eq()
1680 return self.region == other.region; in eq()
1687 fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> { in partial_cmp()
1688 Some(self.cmp(other)) in partial_cmp()
1693 fn cmp(&self, other: &Self) -> cmp::Ordering { in cmp()
1694 return self.region.cmp(&other.region); in cmp()
/DragonOS/docs/community/code_contribution/
H A Dconventional-commit.md18 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 Dcputime.rs81 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/crates/intertrait/macros/
H A DLICENSE-APACHE16 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/src/driver/base/
H A Dkset.rs41 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 Dsignal.rs61 fn eq(&self, other: &Signal) -> bool { in eq()
62 *self as usize == *other as usize in eq()
/DragonOS/kernel/src/time/
H A Dmod.rs468 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 Dclocksource.rs87 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 Dfutex.rs195 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 Ddriver.rs205 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 Dmod.rs345 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link()
346 let other: &LockedRamFSInode = other in link() localVariable
351 let mut other_locked: SpinLockGuard<RamFSInode> = other.0.lock(); in link()
/DragonOS/kernel/src/filesystem/procfs/
H A Dmod.rs651 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()
/DragonOS/kernel/src/driver/base/block/
H A Dblock_device.rs280 fn eq(&self, other: &Self) -> bool { in eq()
281 return self.name == other.name; in eq()
/DragonOS/kernel/src/filesystem/fat/
H A Dfs.rs61 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp()
62 return self.cluster_num.partial_cmp(&other.cluster_num); in partial_cmp()
68 fn eq(&self, other: &Self) -> bool { in eq()
69 self.cluster_num == other.cluster_num in eq()
1715 let other: &LockedFATInode = target in move_to() localVariable
1719 let new_guard = other.0.lock(); in move_to()

12