/DragonOS-0.1.9/kernel/src/libs/ |
D | printk.c | 25 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags); 27 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags… 64 int flags; // 用来存储格式信息的bitmap in __do_vsprintf() local 88 field_width = flags = 0; in __do_vsprintf() 106 flags |= LEFT; in __do_vsprintf() 111 flags |= PLUS; in __do_vsprintf() 115 flags |= SPACE; in __do_vsprintf() 120 flags |= SPECIAL; in __do_vsprintf() 125 flags |= PAD_ZERO; in __do_vsprintf() 149 flags |= LEFT; in __do_vsprintf() [all …]
|
D | spinlock.rs | 31 flags: SpinLockGuardFlags, field 110 flags: SpinLockGuardFlags::empty(), in try_lock() 136 flags: SpinLockGuardFlags::empty(), in try_lock_irqsave() 150 flags: SpinLockGuardFlags::NO_PREEMPT, in try_lock_no_preempt() 191 if self.flags.contains(SpinLockGuardFlags::NO_PREEMPT) { in drop()
|
/DragonOS-0.1.9/kernel/src/exception/ |
D | mod.rs | 34 unsafe fn restore_irq(flags: IrqFlags); in restore_irq() 49 flags: usize, field 53 pub fn new(flags: usize) -> Self { in new() 54 IrqFlags { flags } in new() 57 pub fn flags(&self) -> usize { in flags() method 58 self.flags in flags() 80 flags: IrqFlags, field 91 pub unsafe fn new(flags: IrqFlags) -> Self { in new() 92 IrqFlagsGuard { flags } in new() 98 CurrentIrqArch::restore_irq(self.flags); in drop()
|
D | manage.rs | 66 flags: IrqHandleFlags, in request_irq() 69 return self.request_threaded_irq(irq, Some(handler), None, flags, name, dev_id); in request_irq() 113 flags: IrqHandleFlags, in request_threaded_irq() 126 if ((flags.contains(IrqHandleFlags::IRQF_SHARED)) && dev_id.is_none()) in request_threaded_irq() 127 || ((flags.contains(IrqHandleFlags::IRQF_SHARED)) in request_threaded_irq() 128 && (flags.contains(IrqHandleFlags::IRQF_NO_AUTOEN))) in request_threaded_irq() 129 || (!(flags.contains(IrqHandleFlags::IRQF_SHARED)) in request_threaded_irq() 130 && (flags.contains(IrqHandleFlags::IRQF_COND_SUSPEND))) in request_threaded_irq() 131 || ((flags.contains(IrqHandleFlags::IRQF_NO_SUSPEND)) in request_threaded_irq() 132 && (flags.contains(IrqHandleFlags::IRQF_COND_SUSPEND))) in request_threaded_irq() [all …]
|
/DragonOS-0.1.9/kernel/src/libs/futex/ |
D | syscall.rs | 20 let mut flags = FutexFlag::FLAGS_MATCH_NONE; in do_futex() localVariable 23 flags.insert(FutexFlag::FLAGS_SHARED); in do_futex() 27 flags.insert(FutexFlag::FLAGS_CLOCKRT); in do_futex() 38 return Futex::futex_wait(uaddr, flags, val, timeout, FUTEX_BITSET_MATCH_ANY); in do_futex() 41 return Futex::futex_wait(uaddr, flags, val, timeout, val3); in do_futex() 44 return Futex::futex_wake(uaddr, flags, val, FUTEX_BITSET_MATCH_ANY); in do_futex() 47 return Futex::futex_wake(uaddr, flags, val, val3); in do_futex() 52 flags, in do_futex() 63 flags, in do_futex() 74 flags, in do_futex()
|
/DragonOS-0.1.9/kernel/src/libs/intertrait/macros/src/ |
D | lib.rs | 68 Ok(Targets { flags, paths }) => { in cast_to() 70 item_impl::process(&flags, parse_macro_input!(input as ItemImpl)) in cast_to() 72 item_type::process(&flags, paths, parse_macro_input!(input as DeriveInput)) in cast_to() 137 targets: Targets { flags, paths }, in castable_to() 142 .map(|t| generate_caster(&ty, t, flags.contains(&Flag::Sync))) in castable_to()
|
D | args.rs | 25 pub flags: HashSet<Flag>, field 31 let mut flags = HashSet::new(); in parse() localVariable 35 return Ok(Targets { flags, paths }); in parse() 42 if !flags.insert(Flag::from(&ident)?) { in parse() 50 return Ok(Targets { flags, paths }); in parse() 57 Ok(Targets { flags, paths }) in parse()
|
D | item_type.rs | 11 pub fn process(flags: &HashSet<Flag>, paths: Vec<Path>, input: DeriveInput) -> TokenStream { in process() 24 .flat_map(|t| generate_caster(ident, &t, flags.contains(&Flag::Sync))) in process()
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | vm.rs | 89 flags: mem.flags, // 虚机内存区间属性 in set_user_memory_region() 104 || (new_slot.flags ^ old_slot.flags & KVM_MEM_READONLY) != 0 in set_user_memory_region() 111 } else if new_slot.flags != old_slot.flags { in set_user_memory_region() 126 new_slot.flags = 0; in set_user_memory_region() 145 if (new_slot.flags & KVM_MEM_LOG_DIRTY_PAGES) == 0 { in set_user_memory_region() 171 if mem.flags & !valid_flags != 0 { in check_memory_region_flag()
|
/DragonOS-0.1.9/kernel/src/time/ |
D | clocksource.rs | 319 .flags in clocksource_enqueue_watchdog() 325 .flags in clocksource_enqueue_watchdog() 332 .flags in clocksource_enqueue_watchdog() 337 .flags in clocksource_enqueue_watchdog() 381 cs_data.flags.remove( in set_unstable() 385 .flags in set_unstable() 420 .flags in clocksource_dequeue_watchdog() 437 .flags in clocksource_dequeue_watchdog() 449 .flags in clocksource_dequeue_watchdog() 484 .flags in clocksource_dequeue_watchdog() [all …]
|
/DragonOS-0.1.9/kernel/src/mm/ |
D | memblock.rs | 67 flags: MemoryAreaAttr, in add_range() 87 .do_add_block(&mut inner, block, false, flags) in add_range() 96 self.do_add_block(&mut inner, block, true, flags) in add_range() 107 flags: MemoryAreaAttr, in do_add_block() 139 self.do_insert_area(inner, i, base, range_base - base, flags); in do_add_block() 155 self.do_insert_area(inner, i, base, end - base, flags); in do_add_block() 175 flags: MemoryAreaAttr, in do_insert_area() 181 inner.initial_memory_regions[index] = PhysMemoryArea::new(base, size, flags); in do_insert_area() 201 let next_flags = inner.initial_memory_regions[(i + 1) as usize].flags; in do_merge_blocks() 204 if this.base + this.size != next_base || this.flags != next_flags { in do_merge_blocks() [all …]
|
D | page.rs | 181 pub fn new(paddr: PhysAddr, flags: PageFlags<Arch>) -> Self { in new() 183 data: MMArch::make_entry(paddr, flags.data()), in new() 229 pub fn flags(&self) -> PageFlags<Arch> { in flags() method 234 pub fn set_flags(&mut self, flags: PageFlags<Arch>) { in set_flags() 235 self.data = (self.data & !Arch::ENTRY_FLAGS_MASK) | flags.data(); in set_flags() 280 let flags: PageFlags<Arch> = PageFlags::new() in from_prot_flags() localVariable 285 return flags; in from_prot_flags() 589 flags: PageFlags<Arch>, in map() 594 return self.map_phys(virt, phys, flags); in map() 602 flags: PageFlags<Arch>, in map_phys() [all …]
|
D | no_init.rs | 144 let flags: PageFlags<MMArch> = PageFlags::new().set_write(true); in pseudo_map_phys() localVariable 146 pseudo_map_phys_with_flags(vaddr, paddr, count, flags); in pseudo_map_phys() 153 let flags: PageFlags<MMArch> = PageFlags::new().set_write(false).set_execute(true); in pseudo_map_phys_ro() localVariable 155 pseudo_map_phys_with_flags(vaddr, paddr, count, flags); in pseudo_map_phys_ro() 163 flags: PageFlags<MMArch>, in pseudo_map_phys_with_flags() 180 mapper.map_phys(vaddr, paddr, flags).unwrap(); in pseudo_map_phys_with_flags()
|
D | ucontext.rs | 174 let old_flags = vma_guard.flags(); in try_clone() 289 move |page, count, flags, mapper, flusher| { in map_anonymous() 290 Ok(VMA::zeroed(page, count, vm_flags, flags, mapper, flusher)?) in map_anonymous() 542 .flags() in mprotect() 751 flags: MapFlags, in find_free_at() 767 if flags.contains(MapFlags::MAP_FIXED_NOREPLACE) { in find_free_at() 772 if flags.contains(MapFlags::MAP_FIXED) { in find_free_at() 913 flags: PageFlags<MMArch>, in remap() 924 .remap(page.virt_address(), flags) in remap() 929 guard.flags = flags; in remap() [all …]
|
/DragonOS-0.1.9/kernel/src/common/ |
D | spinlock.h | 100 #define spin_lock_irqsave(lock, flags) … argument 103 …local_irq_save(flags); … 111 #define spin_unlock_irqrestore(lock, flags) … argument 115 …local_irq_restore(flags); …
|
/DragonOS-0.1.9/kernel/src/ipc/ |
D | syscall.rs | 35 pub fn pipe2(fd: *mut i32, flags: FileMode) -> Result<usize, SystemError> { in pipe2() 36 if !flags in pipe2() 49 FileMode::O_RDONLY | (flags & FileMode::O_NONBLOCK), in pipe2() 56 FileMode::O_WRONLY | (flags & (FileMode::O_NONBLOCK | FileMode::O_DIRECT)), in pipe2() 59 FileMode::O_WRONLY | (flags & (FileMode::O_NONBLOCK | FileMode::O_DIRECT)), in pipe2() 62 if flags.contains(FileMode::O_CLOEXEC) { in pipe2() 134 *new_ka.flags_mut() = unsafe { (*act).flags }; in sigaction() 140 *new_ka.flags_mut() = unsafe { (*act).flags }; in sigaction() 151 unsafe { (*act).flags }, in sigaction() 223 (*old_act).flags = old_sigaction.flags(); in sigaction()
|
D | signal_types.rs | 184 flags: SigFlags, field 194 flags: Default::default(), in default() 217 flags: SigFlags, in new() 223 flags, in new() 233 pub fn flags(&self) -> SigFlags { in flags() method 234 self.flags in flags() 242 &mut self.flags in flags_mut() 264 flags: SigFlags::empty(), 272 flags: SigFlags::empty(), 284 pub flags: SigFlags, field
|
/DragonOS-0.1.9/kernel/src/driver/multiboot2/ |
D | multiboot2.h | 120 uint16_t flags; member 126 uint16_t flags; member 134 uint16_t flags; member 146 uint16_t flags; member 155 uint16_t flags; member 164 uint16_t flags; member 175 uint16_t flags; member 182 uint16_t flags; member 330 uint16_t flags; member
|
/DragonOS-0.1.9/kernel/src/driver/input/ps2_mouse/ |
D | ps_mouse_device.rs | 112 flags: MouseFlags, field 122 flags: MouseFlags::empty(), in new() 130 self.flags.contains(MouseFlags::LEFT_BUTTON) in left_button_down() 135 !self.flags.contains(MouseFlags::LEFT_BUTTON) in left_button_up() 140 self.flags.contains(MouseFlags::RIGHT_BUTTON) in right_button_down() 145 !self.flags.contains(MouseFlags::RIGHT_BUTTON) in right_button_up() 298 let flags: MouseFlags = MouseFlags::from_bits_truncate(packet); in process_packet() localVariable 299 if !flags.contains(MouseFlags::ALWAYS_ONE) { in process_packet() 302 guard.current_state.flags = flags; in process_packet() 305 let flags = guard.current_state.flags.clone(); in process_packet() localVariable [all …]
|
/DragonOS-0.1.9/kernel/src/process/ |
D | kthread.rs | 62 flags: KernelThreadFlags, field 69 flags: KernelThreadFlags::empty(), in new() 73 pub fn flags(&self) -> &KernelThreadFlags { in flags() method 74 &self.flags in flags() 78 &mut self.flags in flags_mut() 272 .flags in init_stage1() 286 .flags in init_stage1() 296 .flags() in init_stage2() 371 if !pcb.flags().contains(ProcessFlags::KTHREAD) { in stop() 386 .flags in stop() [all …]
|
D | exec.rs | 100 flags: ExecParamFlags, field 118 flags: ExecParamFlags, in new() 128 flags, in new() 137 pub fn flags(&self) -> &ExecParamFlags { in flags() method 138 &self.flags in flags() 151 if self.flags.contains(ExecParamFlags::EXEC) { in load_mode()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/interrupt/ |
D | mod.rs | 70 let flags = IrqFlags::new(rflags); in save_and_disable_irq() localVariable 71 let guard = IrqFlagsGuard::new(flags); in save_and_disable_irq() 76 unsafe fn restore_irq(flags: IrqFlags) { in restore_irq() 78 local_irq_restore(flags.flags()); in restore_irq()
|
/DragonOS-0.1.9/kernel/src/filesystem/ |
D | mbr.rs | 8 pub flags: u8, // 引导标志符,标记此分区为活动分区 field 45 flags: 0, in default()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/interrupt/ |
D | mod.rs | 41 unsafe fn restore_irq(flags: IrqFlags) { in restore_irq() 42 let sie: bool = flags.flags() != 0; in restore_irq()
|
/DragonOS-0.1.9/user/apps/test_kvm/ |
D | main.c | 34 uint32_t flags; member 93 .flags = 0, in main()
|