Home
last modified time | relevance | path

Searched refs:list_empty (Results 1 – 18 of 18) sorted by relevance

/DragonOS-0.1.2/kernel/src/mm/
Dmmio-buddy.c97 if (unlikely(list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head))) in __buddy_pop_region()
117 if (unlikely(list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head))) in __find_buddy()
142 if (list_empty(&free_list->list_head)) in __buddy_merge()
181 if (!list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head)) in mmio_buddy_query_addr_region()
188list_empty(&__mmio_pool.free_regions[__exp2index(cur_exp)].list_head))) // 一直寻找到有空闲空间的链表 in mmio_buddy_query_addr_region()
201 if (!list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head)) in mmio_buddy_query_addr_region()
208 if (!list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head)) in mmio_buddy_query_addr_region()
Dslab.c131 while (!list_empty(&slab_obj_ptr->list)) in slab_destroy()
/DragonOS-0.1.2/kernel/src/ktest/
Dtest-mutex.c40 assert(list_empty(&mtx.wait_list)); in ktest_mutex_case1_pid1()
58 while (list_empty(&mtx.wait_list)) in ktest_mutex_case1()
/DragonOS-0.1.2/kernel/src/libs/
Dsemaphore.c27 if (list_empty(&sema->wait_queue.wait_list)) // 没有进程在等待资源 in semaphore_up()
Dwait_queue_head.c71 if (list_empty(&q->wait_list)) in wait_queue_wakeup_on_stack()
Dwait_queue.c73 if (list_empty(&wait_queue_head->wait_list)) in wait_queue_wakeup()
Dmutex.c79 if (!list_empty(&lock->wait_list)) in mutex_unlock()
/DragonOS-0.1.2/kernel/src/sched/
Dcfs.c15 if (list_empty(&sched_cfs_ready_queue[proc_current_cpu_id].proc_queue.list)) in sched_cfs_dequeue()
38 if ((list_empty(&sched_cfs_ready_queue[proc_current_cpu_id].proc_queue.list)) == 0) in sched_cfs_enqueue()
Dcompletion.c42 while (!list_empty(&x->wait_queue.wait_list)) in complete_all()
66 if (list_empty(&wait.wait_list)) in __wait_for_common()
79 if (!list_empty(&wait.wait_list)) in __wait_for_common()
/DragonOS-0.1.2/kernel/src/time/
Dtimer.c45 while ((!list_empty(&timer_func_head.list)) && (tmp->expire_jiffies <= timer_jiffies)) in do_timer_softirq()
109 if (list_empty(&timer_func_head.list) == false) in timer_func_add()
/DragonOS-0.1.2/kernel/src/filesystem/VFS/
Dmount.c75 if (list_empty(list)) in mount_find_mnt_list_by_parent()
Ddcache.c50 if (!list_empty(list)) in vfs_dentry_put()
DVFS.c115 if (list_empty(&dentry->subdirs_list)) in vfs_search_dentry_list()
329 if (list_empty(target_list) == false) in vfs_mkdir()
467 if (!list_empty(&parent_dentry->subdirs_list)) in do_open()
/DragonOS-0.1.2/kernel/src/common/
Dlist.h89 static inline bool list_empty(struct List *entry) in list_empty() function
157 #define list_first_entry_or_null(ptr, type, member) (!list_empty(ptr) ? list_entry((ptr)->next, typ…
177 #define list_last_entry_or_full(ptr, type, member) (!list_empty(ptr) ? list_entry((ptr)->prev, type…
/DragonOS-0.1.2/kernel/src/process/
Dkthread.c220 if (list_empty(&kthread_create_list)) in kthreadd()
225 while (!list_empty(&kthread_create_list)) in kthreadd()
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/
Drootfs.c177 if (unlikely(list_empty(list))) in rootfs_migrate()
/DragonOS-0.1.2/kernel/src/libs/libUI/
Dscreen_manager.c244 if (list_empty(&scm_framework_list)) // scm 框架链表为空 in scm_enable_double_buffer()
/DragonOS-0.1.2/docs/kernel/core_api/
Dkernel_api.md75 ### `bool list_empty(struct List *entry)`