/DragonOS-0.1.9/docs/kernel/core_api/ |
D | atomic.md | 68 ### `inline void atomic_set_mask(atomic_t *ato, long mask)` 72   将原子变量的值与mask变量进行or运算 80 **mask** 84 ### `inline void atomic_clear_mask(atomic_t *ato, long mask)` argument 88   将原子变量的值与mask变量进行and运算 96 **mask**
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | cpumask.rs | 67 mask: self, in iter_cpu() 76 mask: self, in iter_zero_cpu() 84 mask: &'a CpuMask, field 95 self.index = self.mask.first()?; in next() 97 self.index = self.mask.first_zero()?; in next() 102 self.index = self.mask.next_index(self.index)?; in next() 104 self.index = self.mask.next_zero_index(self.index)?; in next()
|
/DragonOS-0.1.9/kernel/src/common/ |
D | atomic.h | 83 inline void atomic_set_mask(atomic_t *ato, long mask) in atomic_set_mask() argument 87 : "r"(mask) in atomic_set_mask() 96 inline void atomic_clear_mask(atomic_t *ato, long mask) in atomic_clear_mask() argument 100 : "r"(mask) in atomic_clear_mask()
|
/DragonOS-0.1.9/kernel/crates/bitmap/src/ |
D | bitmap_core.rs | 54 let mask = T::make_mask(n % T::bit_size()); in set_all() localVariable 55 if mask != T::zero() { in set_all() 56 *last_element &= mask; in set_all() 105 let mut mask = T::make_mask(n % T::bit_size()); in last_false_index() localVariable 106 if mask != T::zero() { in last_false_index() 107 <T as BitOps>::invert(&mut mask); in last_false_index() 109 last_element |= mask; in last_false_index() 219 let mask = T::make_mask(n % T::bit_size()); in invert() localVariable 220 if mask != T::zero() { in invert() 221 *last_element &= mask; in invert() [all …]
|
D | traits.rs | 39 let mask = 1 << index; localVariable 40 let prev = *bits & mask; 42 *bits |= mask; 44 *bits &= !mask;
|
/DragonOS-0.1.9/kernel/src/ipc/ |
D | signal_types.rs | 185 mask: SigSet, // 为了可扩展性而设置的sa_mask field 195 mask: Default::default(), in default() 218 mask: SigSet, in new() 224 mask, in new() 249 pub fn mask(&self) -> SigSet { in mask() method 250 self.mask in mask() 254 &mut self.mask in mask_mut() 265 mask: SigSet::from_bits_truncate(0), 273 mask: SigSet::from_bits_truncate(0), 286 pub mask: SigSet, field [all …]
|
D | syscall.rs | 129 let mask: SigSet = unsafe { (*act).mask }; in sigaction() localVariable 171 *new_ka.mask_mut() = mask; in sigaction() 224 (*old_act).mask = old_sigaction.mask(); in sigaction()
|
D | signal.rs | 418 let mut mask: SigSet = SigSet::from_bits_truncate(0); in do_sigaction() localVariable 419 mask.insert(sig.into()); in do_sigaction() 420 pcb.sig_info_mut().sig_pending_mut().flush_by_mask(&mask); in do_sigaction()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/apic/ |
D | ioapic.rs | 204 mut mask: bool, in install() 225 mask = true; in install() 227 if mask { in install() 347 mask: bool, in new() 357 mask, in new() 375 mask: bool, field 387 self.mask, in sync_to_chip() 462 mask: bool, in ioapic_install() 472 mask, in ioapic_install() 502 chip_data_inner.mask = true; in irq_mask() [all …]
|
D | mod.rs | 294 pub fn set_mask(&mut self, mask: bool) { in set_mask() 296 if mask { in set_mask() 305 pub fn mask(&self) -> bool { in mask() method
|
D | apic_timer.rs | 237 fn setup_lvt(&mut self, vector: u8, mask: bool, mode: LocalApicTimerMode) { in setup_lvt() 239 let data = (mode << 17) | (vector as u32) | (if mask { 1 << 16 } else { 0 }); in setup_lvt()
|
/DragonOS-0.1.9/kernel/src/driver/pci/ |
D | pci_irq.rs | 753 let mut mask = PciArch::read_config( in msi_mask() localVariable 757 mask |= 1 << irq_index; in msi_mask() 761 mask, in msi_mask() 765 let mut mask = PciArch::read_config( in msi_mask() localVariable 769 mask |= 1 << irq_index; in msi_mask() 773 mask, in msi_mask() 874 let mut mask = PciArch::read_config( in msi_unmask() localVariable 878 mask &= !(1 << irq_index); in msi_unmask() 882 mask, in msi_unmask() 886 let mut mask = PciArch::read_config( in msi_unmask() localVariable [all …]
|
/DragonOS-0.1.9/kernel/src/time/ |
D | clocksource.rs | 254 max_cycles = max_cycles.min(cs_data_guard.mask.bits); in clocksource_max_deferment() 550 pub mask: ClocksourceMask, field 563 mask: ClocksourceMask, in new() 572 mask, in new() 588 pub fn set_mask(&mut self, mask: ClocksourceMask) { in set_mask() 589 self.mask = mask; in set_mask() 669 CycleNum((cur_wd_nowclock - wd_last) & cur_wd_data.mask.bits), in clocksource_watchdog() 706 CycleNum(cs_now_clock.div(cs_data.watchdog_last).data() & cs_data.mask.bits), in clocksource_watchdog()
|
D | jiffies.rs | 51 d.set_mask(_data.mask); in update_clocksource_data() 69 mask: ClocksourceMask::new(0xffffffff), in new()
|
D | timekeeping.rs | 144 let clock_delta = clock_now.div(clcok_data.watchdog_last).data() & clcok_data.mask.bits(); in tk_get_ns()
|
/DragonOS-0.1.9/kernel/src/exception/ |
D | handle.rs | 140 let mask = IrqStatus::IRQD_IRQ_INPROGRESS | IrqStatus::IRQD_WAKEUP_ARMED; in irq_may_run() localVariable 144 if status.bitand(mask).is_empty() { in irq_may_run()
|
D | manage.rs | 30 let mut mask = CpuMask::new(); localVariable 32 mask.set(ProcessorId::new(0), true); 33 mask
|
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/fbcon/ |
D | framebuffer_console.rs | 731 || fbcon_data.cursor_state.mask.is_empty() in cursor() 767 fbcon_data.cursor_state.mask.push(0x00); in cursor() 773 fbcon_data.cursor_state.mask.push(0xff); in cursor() 801 cursor.mask = fbcon_data.cursor_state.mask.clone(); in cursor()
|
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/ |
D | mod.rs | 433 image.data[i] ^= cursor.mask[i]; in soft_cursor() 438 image.data[i] &= cursor.mask[i]; in soft_cursor() 1199 pub mask: Vec<u8>, field
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/ipc/ |
D | signal.rs | 358 mask: &SigSet, in setup_sigcontext() 365 self.oldmask = *mask; in setup_sigcontext()
|
/DragonOS-0.1.9/kernel/src/mm/ |
D | page.rs | 143 let mask = (MMArch::PAGE_ENTRY_NUM << shift) - 1; in index_of() localVariable 144 if addr < self.base || addr >= self.base.add(mask) { in index_of()
|
/DragonOS-0.1.9/kernel/src/syscall/ |
D | mod.rs | 982 let mask = args[0] as u32; in handle() localVariable 983 Self::umask(mask) in handle()
|
/DragonOS-0.1.9/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.9.md | 1568 2. 实现cpu mask
|