Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 10 of 10) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Dspinlock.rs176 flag: usize, field
215 flag: 0, in lock()
226 flag: flags, in lock_irqsave()
234 flag: 0, in try_lock()
245 flag: flags, in try_lock_irqsave()
281 if self.flag != 0 { in drop()
282 self.lock.lock.unlock_irqrestore(self.flag); in drop()
Dvolatile.rs17 ($data: expr, $val: expr, $flag: expr) => {
20 match $flag {
/DragonOS-0.1.8/kernel/src/libs/libUI/
Dtextui.h37 #define textui_is_chromatic(flag) ((flag)&TEXTUI_WF_CHROMATIC) argument
/DragonOS-0.1.8/kernel/src/time/
Dtimeconv.rs46 let mut flag = false; in is_leap() localVariable
48 flag = true; in is_leap()
50 return flag; in is_leap()
/DragonOS-0.1.8/docs/kernel/filesystem/
Doverview.md62 - `sys_unlink_at`:删除文件或目录(通过参数`flag`区分到底是删除文件还是目录)
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs140 let mut flag = true; in find_dynamic_major() localVariable
143 flag = false; in find_dynamic_major()
147 if flag { in find_dynamic_major()
/DragonOS-0.1.8/kernel/src/ipc/
Dsyscall.rs184 let flag = old_ka.sa_flags & (SA_FLAG_DFL | SA_FLAG_IGN); in sigaction() localVariable
185 match flag { in sigaction()
/DragonOS-0.1.8/kernel/src/mm/
Dpage.rs313 pub fn update_flags(mut self, flag: usize, value: bool) -> Self { in update_flags()
315 self.data |= flag; in update_flags()
317 self.data &= !flag; in update_flags()
324 pub fn has_flag(&self, flag: usize) -> bool { in has_flag()
325 return self.data & flag == flag; in has_flag()
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/
Dapic.c605 bool flag = false; in apic_get_ics() local
615 flag = true; in apic_get_ics()
621 if (!flag) in apic_get_ics()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci_irq.rs120 fn irq_init(&mut self, flag: IRQ) -> Option<IrqType> { in irq_init()
122 if flag.contains(IRQ::PCI_IRQ_MSIX) { in irq_init()
154 if flag.contains(IRQ::PCI_IRQ_MSI) { in irq_init()
177 if flag.contains(IRQ::PCI_IRQ_LEGACY) { in irq_init()