/DragonOS-0.1.5/user/libs/libc/src/ |
D | printf.c | 9 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags… 10 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags… 81 int flags; // 用来存储格式信息的bitmap in vsprintf() local 101 field_width = flags = 0; in vsprintf() 119 flags |= LEFT; in vsprintf() 124 flags |= PLUS; in vsprintf() 128 flags |= SPACE; in vsprintf() 133 flags |= SPECIAL; in vsprintf() 138 flags |= PAD_ZERO; in vsprintf() 162 flags |= LEFT; in vsprintf() [all …]
|
/DragonOS-0.1.5/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 | 15 pub fn spin_lock_irqsave(lock: *mut spinlock_t, flags: &mut u64) { in spin_lock_irqsave() 16 local_irq_save(flags); in spin_lock_irqsave() 24 pub fn spin_unlock_irqrestore(lock: *mut spinlock_t, flags: &u64) { in spin_unlock_irqrestore() 29 local_irq_restore(flags); in spin_unlock_irqrestore() 131 pub fn lock_irqsave(&self, flags: &mut u64) { in lock_irqsave() 132 local_irq_save(flags); in lock_irqsave() 137 pub fn unlock_irqrestore(&self, flags: &u64) { in unlock_irqrestore() 139 local_irq_restore(flags); in unlock_irqrestore()
|
D | semaphore.c | 21 current_pcb->flags |= PF_NEED_SCHED; in semaphore_down()
|
D | idr.c | 35 unsigned long flags; in __move_to_free_list() local 36 spin_lock_irqsave(&idp->lock, flags); in __move_to_free_list() 45 spin_unlock_irqrestore(&idp->lock, flags); in __move_to_free_list() 65 unsigned long flags; in __get_from_free_list() local 66 spin_lock_irqsave(&idp->lock, flags); in __get_from_free_list() 83 spin_unlock_irqrestore(&idp->lock, flags); in __get_from_free_list() 723 int flags = idr_replace_get_old(idp, ptr, __id, &old_ptr); in idr_replace() local 725 return flags; in idr_replace() 746 unsigned long flags = ((cur_layer->bitmap) >> layer_id); in __idr_cnt_pd() local 747 if ((flags % 2) == 0) in __idr_cnt_pd()
|
/DragonOS-0.1.5/kernel/src/arch/x86_64/asm/ |
D | irqflags.rs | 4 pub fn local_irq_save(flags: &mut u64) { in local_irq_save() 6 asm!("pushfq", "pop rax", "mov rax, {0}", "cli", out(reg)(*flags),); in local_irq_save() 11 pub fn local_irq_restore(flags: &u64) { in local_irq_restore() 12 let x = unsafe { read_volatile(flags) }; in local_irq_restore()
|
/DragonOS-0.1.5/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.5/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.5/docs/kernel/core_api/ |
D | mm-api.md | 64 ### `struct Page *alloc_pages(unsigned int zone_select, int num, ul flags)` 86 **flags** 126 ### `int mm_map_phys_addr(ul virt_addr_start, ul phys_addr_start, ul length, ul flags, bool use4k)` 146 **flags** 154 …addr, bool is_phys, ul virt_addr_start, ul phys_addr_start, ul length, ul flags, bool user, bool f… argument 182 **flags**
|
/DragonOS-0.1.5/kernel/src/process/ |
D | fork.c | 62 if ((current_pcb->flags & PF_KTHREAD) && stack_start != 0) in do_fork() 63 tsk->flags |= PF_KFORK; in do_fork() 65 if (tsk->flags & PF_KTHREAD) in do_fork() 135 tsk->flags &= ~PF_KFORK; in do_fork() 174 pcb->flags |= PF_VFORK; in process_copy_flags() 330 if (pcb->flags & PF_KFORK) // 内核态下的fork in process_copy_thread() 351 if (pcb->flags & PF_KFORK) in process_copy_thread() 363 if (pcb->flags & PF_KFORK) in process_copy_thread() 365 else if (pcb->flags & PF_KTHREAD && (!(pcb->flags & PF_KFORK))) in process_copy_thread()
|
D | kthread.c | 46 WARN_ON(!(pcb->flags & PF_KTHREAD)); in to_kthread() 184 if (!(self->flags & (1 << KTHREAD_SHOULD_STOP))) in kthread() 217 current_pcb->flags |= PF_NOFREEZE; in kthreadd() 257 if (self->flags & (1 << KTHREAD_SHOULD_STOP)) in kthread_should_stop() 273 target->flags |= (1 << KTHREAD_SHOULD_STOP); in kthread_stop()
|
D | process.c | 54 ….state = PROC_UNINTERRUPTIBLE, .flags = PF_KTHREAD, .preempt_count = 0, .signal = 0, .cpu_id = 0, … 417 if (current_pcb->flags & PF_VFORK) in do_execve() 442 if (!(current_pcb->flags & PF_KTHREAD)) in do_execve() 461 current_pcb->flags &= ~PF_VFORK; in do_execve() 595 current_pcb->flags &= (~PF_KTHREAD); in initial_kernel_thread() 596 kdebug("in initial_kernel_thread: flags=%ld", current_pcb->flags); in initial_kernel_thread() 600 current_pcb->flags = 0; in initial_kernel_thread() 659 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) in kernel_thread() argument 688 return do_fork(®s, flags | CLONE_VM, 0, 0); in kernel_thread() 786 current_pcb->flags |= PF_NEED_SCHED; in process_wakeup_immediately() [all …]
|
D | fork.rs | 46 let mut flags: u64 = 0; in process_copy_sighand() localVariable 48 spin_lock_irqsave(unsafe { &mut (*current_pcb().sighand).siglock }, &mut flags); in process_copy_sighand() 66 spin_unlock_irqrestore(unsafe { &mut (*current_pcb().sighand).siglock }, &flags); in process_copy_sighand()
|
/DragonOS-0.1.5/kernel/src/driver/video/ |
D | video.c | 74 video_daemon_pcb->flags |= PF_NEED_SCHED; in video_refresh_daemon() 170 video_frame_buffer_info.flags |= SCM_BF_TEXT; in video_init() 175 video_frame_buffer_info.flags |= SCM_BF_PIXEL; in video_init() 178 video_frame_buffer_info.flags |= SCM_BF_FB; in video_init()
|
/DragonOS-0.1.5/kernel/src/driver/usb/xhci/ |
D | internal.h | 57 #define XHCI_PORT_IS_USB2(cid, pid) ((xhci_hc[cid].ports[pid].flags & XHCI_PROTOCOL_INFO) == XHCI_P… 58 #define XHCI_PORT_IS_USB3(cid, pid) ((xhci_hc[cid].ports[pid].flags & XHCI_PROTOCOL_INFO) == XHCI_P… 60 #define XHCI_PORT_IS_USB2_HSO(cid, pid) ((xhci_hc[cid].ports[pid].flags & XHCI_PROTOCOL_HSO) == XHC… 61 #define XHCI_PORT_HAS_PAIR(cid, pid) ((xhci_hc[cid].ports[pid].flags & XHCI_PROTOCOL_HAS_PAIR) == X… 62 #define XHCI_PORT_IS_ACTIVE(cid, pid) ((xhci_hc[cid].ports[pid].flags & XHCI_PROTOCOL_ACTIVE) == XH…
|
/DragonOS-0.1.5/kernel/src/sched/ |
D | core.rs | 61 if (min_loads_cpu_id != pcb.cpu_id) && (pcb.flags & (PF_NEED_MIGRATE as u64)) == 0 { in loads_balance() 63 pcb.flags |= PF_NEED_MIGRATE as u64; in loads_balance() 122 if (pcb.flags & (PF_NEED_MIGRATE as u64)) != 0 { in sched_enqueue() 124 pcb.flags &= !(PF_NEED_MIGRATE as u64); in sched_enqueue() 211 pcb.flags |= PF_NEED_MIGRATE as u64; in sched_migrate_process()
|
/DragonOS-0.1.5/kernel/src/filesystem/ |
D | mbr.rs | 8 pub flags: u8, // 引导标志符,标记此分区为活动分区 field 45 flags: 0, in default()
|
/DragonOS-0.1.5/kernel/src/mm/ |
D | mm.h | 224 unsigned long page_init(struct Page *page, ul flags); 246 struct Page *alloc_pages(unsigned int zone_select, int num, ul flags); 279 ul set_page_attr(struct Page *page, ul flags); 407 int mm_map_phys_addr(ul virt_addr_start, ul phys_addr_start, ul length, ul flags, bool use4k); 422 ul flags, bool user, bool flush, bool use4k); 424 int mm_map_phys_addr_user(ul virt_addr_start, ul phys_addr_start, ul length, ul flags);
|
D | mmap.c | 46 int mm_map_phys_addr(ul virt_addr_start, ul phys_addr_start, ul length, ul flags, bool use4k) in mm_map_phys_addr() argument 50 …return mm_map_proc_page_table(global_CR3, true, virt_addr_start, phys_addr_start, length, flags, f… in mm_map_phys_addr() 53 int mm_map_phys_addr_user(ul virt_addr_start, ul phys_addr_start, ul length, ul flags) in mm_map_phys_addr_user() argument 56 …return mm_map_proc_page_table(global_CR3, true, virt_addr_start, phys_addr_start, length, flags, t… in mm_map_phys_addr_user() 71 …addr, bool is_phys, ul virt_addr_start, ul phys_addr_start, ul length, ul flags, bool user, bool f… in mm_map_proc_page_table() argument 82 if ((flags & PAGE_U_S) != 0) in mm_map_proc_page_table() 165 …set_pt(pte_ptr, mk_pt((ul)phys_addr_start + length_mapped, flags | (user ? PAGE_USER_4K_PAGE : PAG… in mm_map_proc_page_table() 181 …set_pdt(pde_ptr, mk_pdt((ul)phys_addr_start + length_mapped, flags | (user ? PAGE_USER_PAGE : PAGE… in mm_map_proc_page_table()
|
/DragonOS-0.1.5/kernel/src/smp/ |
D | smp.c | 70 proc_local_apic_structs[i]->flags); in smp_init() 76 … if (!((proc_local_apic_structs[i]->flags & 0x1) || (proc_local_apic_structs[i]->flags & 0x2))) in smp_init() 166 current_pcb->flags = PF_KTHREAD; in smp_ap_start() 192 current_pcb->flags |= PF_NEED_SCHED; in smp_ap_start()
|
/DragonOS-0.1.5/kernel/src/libs/libUI/ |
D | textui.c | 33 static int __textui_init_window(struct textui_window_t *window, uint8_t flags, uint16_t vlines_num,… in __textui_init_window() argument 42 window->flags = flags; in __textui_init_window() 48 if (textui_is_chromatic(flags)) in __textui_init_window() 174 if (textui_is_chromatic(window->flags)) // 启用彩色字符 in __textui_putchar_window() 212 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()
|
D | textui-render.c | 33 if (textui_is_chromatic(window->flags)) in textui_refresh_vline() 90 if (textui_is_chromatic(window->flags)) in textui_refresh_characters()
|
D | screen_manager.h | 27 uint64_t flags; // 帧缓冲区标志位 member
|
/DragonOS-0.1.5/kernel/src/driver/acpi/ |
D | acpi.h | 110 uint flags; member 129 uint flags; member
|