Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 25 of 47) sorted by relevance

12

/DragonOS-0.1.2/user/libs/libc/src/
Dprintf.c9 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.2/kernel/src/libs/
Dprintk.c25 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 …]
Dspinlock.rs10 pub fn spin_lock_irqsave(lock: *mut spinlock_t, flags: &mut u64) { in spin_lock_irqsave()
11 local_irq_save(flags); in spin_lock_irqsave()
19 pub fn spin_unlock_irqrestore(lock: *mut spinlock_t, flags: &u64) { in spin_unlock_irqrestore()
24 local_irq_restore(flags); in spin_unlock_irqrestore()
Dsemaphore.c41 current_pcb->flags |= PF_NEED_SCHED; in semaphore_up()
/DragonOS-0.1.2/kernel/src/arch/x86_64/asm/
Dirqflags.rs4 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.2/kernel/src/common/
Dspinlock.h100 #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); …
Dkthread.h14 uint64_t flags; member
/DragonOS-0.1.2/kernel/src/driver/multiboot2/
Dmultiboot2.h123 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.2/docs/kernel/core_api/
Dmm-api.md64 ### `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.2/kernel/src/driver/video/
Dvideo.c73 video_daemon_pcb->flags &= ~PROC_RUNNING; in video_refresh_daemon()
169 video_frame_buffer_info.flags |= SCM_BF_TEXT; in video_init()
174 video_frame_buffer_info.flags |= SCM_BF_PIXEL; in video_init()
177 video_frame_buffer_info.flags |= SCM_BF_FB; in video_init()
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/
Dinternal.h57 #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.2/kernel/src/process/
Dfork.c61 if ((current_pcb->flags & PF_KTHREAD) && stack_start != 0) in do_fork()
62 tsk->flags |= PF_KFORK; in do_fork()
64 if (tsk->flags & PF_KTHREAD) in do_fork()
134 tsk->flags &= ~PF_KFORK; in do_fork()
172 pcb->flags |= PF_VFORK; in process_copy_flags()
355 if (pcb->flags & PF_KFORK) // 内核态下的fork in process_copy_thread()
376 if (pcb->flags & PF_KFORK) in process_copy_thread()
388 if (pcb->flags & PF_KFORK) in process_copy_thread()
390 else if (pcb->flags & PF_KTHREAD && (!(pcb->flags & PF_KFORK))) in process_copy_thread()
Dkthread.c46 WARN_ON(!(pcb->flags & PF_KTHREAD)); in to_kthread()
184 if (!(self->flags & (1 << KTHREAD_SHOULD_STOP))) in kthread()
214 current_pcb->flags |= PF_NOFREEZE; in kthreadd()
251 if (self->flags & (1 << KTHREAD_SHOULD_STOP)) in kthread_should_stop()
267 target->flags |= (1 << KTHREAD_SHOULD_STOP); in kthread_stop()
Dprocess.c57 ….state = PROC_UNINTERRUPTIBLE, .flags = PF_KTHREAD, .preempt_count = 0, .signal = 0, .cpu_id = 0, …
359 if (current_pcb->flags & PF_VFORK) in do_execve()
384 if (!(current_pcb->flags & PF_KTHREAD)) in do_execve()
402 current_pcb->flags &= ~PF_VFORK; in do_execve()
509 current_pcb->flags &= (~PF_KTHREAD); in initial_kernel_thread()
510 kdebug("in initial_kernel_thread: flags=%ld", current_pcb->flags); in initial_kernel_thread()
514 current_pcb->flags = 0; in initial_kernel_thread()
573 pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags) in kernel_thread() argument
602 return do_fork(&regs, flags | CLONE_VM, 0, 0); in kernel_thread()
703 current_pcb->flags |= PF_NEED_SCHED; in process_wakeup_immediately()
[all …]
Dfork.rs46 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.2/kernel/src/mm/
Dmm.h224 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);
Dmmap.c46 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.2/kernel/src/libs/libUI/
Dtextui.c33 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()
Dscreen_manager.c37 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()
Dtextui-render.c33 if (textui_is_chromatic(window->flags)) in textui_refresh_vline()
90 if (textui_is_chromatic(window->flags)) in textui_refresh_characters()
Dscreen_manager.h27 uint64_t flags; // 帧缓冲区标志位 member
/DragonOS-0.1.2/kernel/src/smp/
Dsmp.c65 proc_local_apic_structs[i]->flags); in smp_init()
71 … if (!((proc_local_apic_structs[i]->flags & 0x1) || (proc_local_apic_structs[i]->flags & 0x2))) in smp_init()
160 current_pcb->flags = PF_KTHREAD; in smp_ap_start()
/DragonOS-0.1.2/kernel/src/filesystem/
DMBR.h24 uint8_t flags; // 引导标志符,标记此分区为活动分区 member
/DragonOS-0.1.2/kernel/src/driver/acpi/
Dacpi.h110 uint flags; member
129 uint flags; member
/DragonOS-0.1.2/kernel/src/sched/
Dcfs.c58 current_pcb->flags &= ~PF_NEED_SCHED; in sched_cfs()
135 current_pcb->flags |= PF_NEED_SCHED; in sched_update_jiffies()

12