/DragonOS-0.1.8/kernel/src/exception/ |
D | mod.rs | 17 unsafe fn restore_irq(flags: IrqFlags); in restore_irq() 22 flags: usize, field 26 pub fn new(flags: usize) -> Self { in new() 27 IrqFlags { flags } in new() 30 pub fn flags(&self) -> usize { in flags() method 31 self.flags in flags() 53 flags: IrqFlags, field 64 pub unsafe fn new(flags: IrqFlags) -> Self { in new() 65 IrqFlagsGuard { flags } in new() 71 CurrentIrqArch::restore_irq(self.flags); in drop()
|
/DragonOS-0.1.8/user/libs/libc/src/ |
D | printf.c | 10 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags… 11 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags… 83 int flags; // 用来存储格式信息的bitmap in vsprintf() local 103 field_width = flags = 0; in vsprintf() 121 flags |= LEFT; in vsprintf() 126 flags |= PLUS; in vsprintf() 130 flags |= SPACE; in vsprintf() 135 flags |= SPECIAL; in vsprintf() 140 flags |= PAD_ZERO; in vsprintf() 164 flags |= LEFT; in vsprintf() [all …]
|
/DragonOS-0.1.8/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 | 17 pub fn spin_lock_irqsave(lock: *mut spinlock_t, flags: &mut usize) { in spin_lock_irqsave() 18 *flags = local_irq_save(); in spin_lock_irqsave() 26 pub fn spin_unlock_irqrestore(lock: *mut spinlock_t, flags: usize) { in spin_unlock_irqrestore() 30 local_irq_restore(flags); in spin_unlock_irqrestore() 137 pub fn lock_irqsave(&self, flags: &mut usize) { in lock_irqsave() 138 *flags = local_irq_save(); in lock_irqsave() 143 pub fn unlock_irqrestore(&self, flags: usize) { in unlock_irqrestore() 145 local_irq_restore(flags); in unlock_irqrestore() 152 pub fn try_lock_irqsave(&self, flags: &mut usize) -> bool { in try_lock_irqsave() 153 *flags = local_irq_save(); in try_lock_irqsave() [all …]
|
D | semaphore.c | 21 current_pcb->flags |= PF_NEED_SCHED; in semaphore_down()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/interrupt/ |
D | mod.rs | 52 let flags = IrqFlags::new(rflags); in save_and_disable_irq() localVariable 53 let guard = IrqFlagsGuard::new(flags); in save_and_disable_irq() 58 unsafe fn restore_irq(flags: IrqFlags) { in restore_irq() 60 local_irq_restore(flags.flags()); in restore_irq()
|
/DragonOS-0.1.8/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.8/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.8/kernel/src/driver/multiboot2/ |
D | multiboot2.h | 123 uint16_t flags; member 129 uint16_t flags; member 137 uint16_t flags; member 149 uint16_t flags; member 158 uint16_t flags; member 167 uint16_t flags; member 178 uint16_t flags; member 185 uint16_t flags; member 333 uint16_t flags; member
|
/DragonOS-0.1.8/kernel/src/process/ |
D | fork.c | 64 if ((current_pcb->flags & PF_KTHREAD) && stack_start != 0) in do_fork() 65 tsk->flags |= PF_KFORK; in do_fork() 67 if (tsk->flags & PF_KTHREAD) in do_fork() 137 tsk->flags &= ~PF_KFORK; in do_fork() 176 pcb->flags |= PF_VFORK; in process_copy_flags() 252 if (pcb->flags & PF_KFORK) // 内核态下的fork in process_copy_thread() 274 if (pcb->flags & PF_KFORK) in process_copy_thread() 285 if (pcb->flags & PF_KFORK) in process_copy_thread() 287 else if (pcb->flags & PF_KTHREAD && (!(pcb->flags & PF_KFORK))) in process_copy_thread()
|
D | process.c | 57 ….state = PROC_UNINTERRUPTIBLE, .flags = PF_KTHREAD, .preempt_count = 0, .signal = 0, .cpu_id = 0, … 213 current_pcb->flags &= (~PF_KTHREAD); in initial_kernel_thread() 214 kdebug("in initial_kernel_thread: flags=%ld", current_pcb->flags); in initial_kernel_thread() 218 current_pcb->flags = 0; in initial_kernel_thread() 277 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) in kernel_thread() argument 306 return do_fork(®s, flags | CLONE_VM, 0, 0); in kernel_thread() 416 current_pcb->flags |= PF_NEED_SCHED; in process_wakeup_immediately() 454 if ((pcb->flags & PF_KTHREAD)) // 释放内核线程的worker private结构体 in process_release_pcb()
|
D | exec.rs | 101 flags: ExecParamFlags, field 116 pub fn new(file_path: &'a str, vm: Arc<AddressSpace>, flags: ExecParamFlags) -> Self { in new() 121 flags, in new() 134 pub fn flags(&self) -> &ExecParamFlags { in flags() method 135 &self.flags in flags() 148 if self.flags.contains(ExecParamFlags::EXEC) { in load_mode()
|
D | kthread.c | 46 WARN_ON(!(pcb->flags & PF_KTHREAD)); in to_kthread() 185 if (!(self->flags & (1 << KTHREAD_SHOULD_STOP))) in kthread() 220 current_pcb->flags |= PF_NOFREEZE; in kthreadd() 262 if (self->flags & (1 << KTHREAD_SHOULD_STOP)) in kthread_should_stop() 278 target->flags |= (1 << KTHREAD_SHOULD_STOP); in kthread_stop()
|
D | fork.rs | 47 let mut flags: usize = 0; in process_copy_sighand() localVariable 49 spin_lock_irqsave(unsafe { &mut (*current_pcb().sighand).siglock }, &mut flags); in process_copy_sighand() 67 spin_unlock_irqrestore(unsafe { &mut (*current_pcb().sighand).siglock }, flags); in process_copy_sighand()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | page.rs | 211 pub fn flags(&self) -> PageFlags<Arch> { in flags() method 216 pub fn set_flags(&mut self, flags: PageFlags<Arch>) { in set_flags() 217 self.data = (self.data & !Arch::ENTRY_FLAGS_MASK) | flags.data(); in set_flags() 262 let flags: PageFlags<Arch> = PageFlags::new() in from_prot_flags() localVariable 267 return flags; in from_prot_flags() 548 flags: PageFlags<Arch>, in map() 553 return self.map_phys(virt, phys, flags); in map() 561 flags: PageFlags<Arch>, in map_phys() 577 let entry = PageEntry::new(phys.data() | flags.data()); in map_phys() 613 let flags: PageFlags<MMArch> = in map_phys() localVariable [all …]
|
D | ucontext.rs | 166 let old_flags = vma_guard.flags(); in try_clone() 270 move |page, count, flags, mapper, flusher| { in map_anonymous() 271 Ok(VMA::zeroed(page, count, flags, mapper, flusher)?) in map_anonymous() 454 .flags() in mprotect() 662 flags: MapFlags, in find_free_at() 678 if flags.contains(MapFlags::MAP_FIXED_NOREPLACE) { in find_free_at() 683 if flags.contains(MapFlags::MAP_FIXED) { in find_free_at() 824 flags: PageFlags<MMArch>, in remap() 835 .remap(page.virt_address(), flags) in remap() 840 guard.flags = flags; in remap() [all …]
|
D | no_init.rs | 69 let flags: PageFlags<MMArch> = PageFlags::new().set_write(true).set_execute(true); in pseudo_map_phys() localVariable 74 let flusher = mapper.map_phys(vaddr, paddr, flags).unwrap(); in pseudo_map_phys()
|
/DragonOS-0.1.8/kernel/src/driver/video/ |
D | video.c | 72 video_daemon_pcb->flags |= PF_NEED_SCHED; in video_refresh_daemon() 168 video_frame_buffer_info.flags |= SCM_BF_TEXT; in video_init() 173 video_frame_buffer_info.flags |= SCM_BF_PIXEL; in video_init() 176 video_frame_buffer_info.flags |= SCM_BF_FB; in video_init()
|
/DragonOS-0.1.8/kernel/src/sched/ |
D | core.rs | 59 if (min_loads_cpu_id != pcb.cpu_id) && (pcb.flags & (PF_NEED_MIGRATE as u64)) == 0 { in loads_balance() 61 pcb.flags |= PF_NEED_MIGRATE as u64; in loads_balance() 119 if (pcb.flags & (PF_NEED_MIGRATE as u64)) != 0 { in sched_enqueue() 121 pcb.flags &= !(PF_NEED_MIGRATE as u64); in sched_enqueue() 191 pcb.flags |= PF_NEED_MIGRATE as u64; in sched_migrate_process()
|
/DragonOS-0.1.8/kernel/src/filesystem/ |
D | mbr.rs | 8 pub flags: u8, // 引导标志符,标记此分区为活动分区 field 45 flags: 0, in default()
|
/DragonOS-0.1.8/kernel/src/smp/ |
D | smp.c | 81 proc_local_apic_structs[i]->flags); in smp_init() 87 … if (!((proc_local_apic_structs[i]->flags & 0x1) || (proc_local_apic_structs[i]->flags & 0x2))) in smp_init() 176 current_pcb->flags = PF_KTHREAD; in smp_ap_start() 203 current_pcb->flags |= PF_NEED_SCHED; in smp_ap_start()
|
/DragonOS-0.1.8/kernel/src/libs/libUI/ |
D | textui.c | 36 static int __textui_init_window(struct textui_window_t *window, uint8_t flags, uint16_t vlines_num,… in __textui_init_window() argument 45 window->flags = flags; in __textui_init_window() 51 if (textui_is_chromatic(flags)) in __textui_init_window() 180 if (textui_is_chromatic(window->flags)) // 启用彩色字符 in __textui_putchar_window() 218 if (!textui_is_chromatic(window->flags)) // 暂不支持纯文本窗口 in textui_putchar_window()
|
D | screen_manager.c | 37 buf->flags = SCM_BF_DB; in __create_buffer() 40 buf->flags |= SCM_BF_PIXEL; in __create_buffer() 42 buf->flags |= SCM_BF_TEXT; in __create_buffer() 73 if (buf->flags & SCM_BF_FB) in __destroy_buffer()
|
/DragonOS-0.1.8/kernel/src/driver/acpi/ |
D | acpi.h | 110 uint flags; member 129 uint flags; member
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | tty_device.rs | 126 p.flags.insert(TtyFileFlag::STDIN); in open() 129 p.flags.insert(TtyFileFlag::STDERR); in open() 131 p.flags.insert(TtyFileFlag::STDOUT); in open() 194 let r: Result<usize, TtyError> = if data.flags.contains(TtyFileFlag::STDOUT) { in write_at() 196 } else if data.flags.contains(TtyFileFlag::STDERR) { in write_at()
|