/DragonOS-0.1.2/docs/userland/libc/apis/ |
D | index.rst | 7 api-list/ctype 8 api-list/dirent 9 api-list/errno 10 api-list/fcntl 11 api-list/math 12 api-list/stdio 13 api-list/printf 14 api-list/stddef 15 api-list/stdlib 16 api-list/string [all …]
|
/DragonOS-0.1.2/kernel/src/libs/ |
D | list.rs | 5 pub fn list_init(list: *mut List) { in list_init() 6 unsafe{*list}.prev = list; in list_init() 7 unsafe{*list}.next = list; in list_init()
|
D | mutex.c | 49 list_init(&waiter->list); in mutex_lock() 50 list_append(&lock->wait_list, &waiter->list); in mutex_lock() 80 wt = container_of(list_next(&lock->wait_list), struct mutex_waiter_t, list); in mutex_unlock() 84 list_del(&wt->list); in mutex_unlock()
|
D | mod.rs | 8 pub mod list; module
|
D | wait_queue.rs | 3 use super::{list::list_init};
|
/DragonOS-0.1.2/kernel/src/time/ |
D | timer.c | 43 …_func_list_t *tmp = container_of(list_next(&timer_func_head.list), struct timer_func_list_t, list); in do_timer_softirq() 45 while ((!list_empty(&timer_func_head.list)) && (tmp->expire_jiffies <= timer_jiffies)) in do_timer_softirq() 63 tmp = container_of(list_next(&timer_func_head.list), struct timer_func_list_t, list); in do_timer_softirq() 77 list_init(&timer_func->list); in timer_func_init() 93 list_init(&timer_func->list); in timer_func_init_us() 107 …_func_list_t *tmp = container_of(list_next(&timer_func_head.list), struct timer_func_list_t, list); in timer_func_add() 109 if (list_empty(&timer_func_head.list) == false) in timer_func_add() 111 tmp = container_of(list_next(&tmp->list), struct timer_func_list_t, list); in timer_func_add() 113 list_add(&tmp->list, &(timer_func->list)); in timer_func_add() 123 list_del(&timer_func->list); in timer_func_del()
|
D | timer.h | 27 struct List list; member
|
/DragonOS-0.1.2/kernel/src/sched/ |
D | cfs.c | 15 if (list_empty(&sched_cfs_ready_queue[proc_current_cpu_id].proc_queue.list)) in sched_cfs_dequeue() 21 …(&sched_cfs_ready_queue[proc_current_cpu_id].proc_queue.list), struct process_control_block, list); in sched_cfs_dequeue() 23 list_del(&proc->list); in sched_cfs_dequeue() 37 …(&sched_cfs_ready_queue[proc_current_cpu_id].proc_queue.list), struct process_control_block, list); in sched_cfs_enqueue() 38 if ((list_empty(&sched_cfs_ready_queue[proc_current_cpu_id].proc_queue.list)) == 0) in sched_cfs_enqueue() 42 proc = container_of(list_next(&proc->list), struct process_control_block, list); in sched_cfs_enqueue() 45 list_append(&proc->list, &pcb->list); in sched_cfs_enqueue() 148 list_init(&sched_cfs_ready_queue[i].proc_queue.list); in sched_cfs_init()
|
/DragonOS-0.1.2/kernel/src/mm/ |
D | mmio-buddy.c | 28 list_init(®ion->list); in __buddy_add_region_obj() 29 list_append(&lst->list_head, ®ion->list); in __buddy_add_region_obj() 44 list_init(®ion->list); in __mmio_buddy_create_region() 100 struct __mmio_buddy_addr_region, list); in __buddy_pop_region() 101 list_del(&r->list); in __buddy_pop_region() 121 struct List *list = &__mmio_pool.free_regions[__exp2index(exp)].list_head; in __find_buddy() local 125 list = list_next(list); in __find_buddy() 126 … struct __mmio_buddy_addr_region *bd = container_of(list, struct __mmio_buddy_addr_region, list); in __find_buddy() 129 } while (list_next(list) != &__mmio_pool.free_regions[__exp2index(exp)].list_head); in __find_buddy() 145 struct List *list = list_next(&free_list->list_head); in __buddy_merge() local [all …]
|
D | slab.c | 68 list_init(&slab_pool->cache_pool_entry->list); in slab_create() 131 while (!list_empty(&slab_obj_ptr->list)) in slab_destroy() 135 slab_obj_ptr = container_of(list_next(&slab_obj_ptr->list), struct slab_obj, list); in slab_destroy() 137 list_del(&tmp_slab_obj->list); in slab_destroy() 181 list_init(&tmp_slab_obj->list); in slab_malloc() 212 list_add(&slab_pool->cache_pool_entry->list, &tmp_slab_obj->list); in slab_malloc() 225 slab_obj_ptr = container_of(list_next(&slab_obj_ptr->list), struct slab_obj, list); in slab_malloc() 272 list_del(&tmp_slab_obj->list); in slab_malloc() 298 slab_obj_ptr = container_of(list_next(&slab_obj_ptr->list), struct slab_obj, list); in slab_free() 323 list_del(&slab_obj_ptr->list); in slab_free() [all …]
|
D | mmio-buddy.h | 18 struct List list; member
|
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/ |
D | rootfs.c | 55 struct List *list = &dentry->subdirs_list; in rootfs_readdir() local 59 list = list_next(list); in rootfs_readdir() 60 if (list == &dentry->subdirs_list) // 找完了 in rootfs_readdir() 68 … struct vfs_dir_entry_t *target_dent = container_of(list, struct vfs_dir_entry_t, child_node_list); in rootfs_readdir() 117 struct List *list = &rootfs_sb.root->subdirs_list; in rootfs_add_dir() local 118 while (list_next(list) != &rootfs_sb.root->subdirs_list) in rootfs_add_dir() 120 list = list_next(list); in rootfs_add_dir() 121 … struct vfs_dir_entry_t *tmp = container_of(list, struct vfs_dir_entry_t, child_node_list); in rootfs_add_dir() 176 struct List *list = &rootfs_sb.root->subdirs_list; in rootfs_migrate() local 177 if (unlikely(list_empty(list))) in rootfs_migrate() [all …]
|
/DragonOS-0.1.2/kernel/src/filesystem/VFS/ |
D | mount.c | 73 struct List *list = &mnt_list_head; in mount_find_mnt_list_by_parent() local 75 if (list_empty(list)) in mount_find_mnt_list_by_parent() 78 while (list_next(list) != &mnt_list_head) in mount_find_mnt_list_by_parent() 80 list = list_next(list); in mount_find_mnt_list_by_parent() 81 struct mountpoint *tmp = container_of(list, struct mountpoint, mnt_list); in mount_find_mnt_list_by_parent()
|
D | dcache.c | 49 struct List *list = &dentry->subdirs_list; in vfs_dentry_put() local 50 if (!list_empty(list)) in vfs_dentry_put() 55 list = list_next(list); in vfs_dentry_put() 56 … in_value = (uint64_t)container_of(list, struct vfs_dir_entry_t, child_node_list); in vfs_dentry_put() 60 } while (list_next(list) != (&dentry->subdirs_list)); in vfs_dentry_put()
|
/DragonOS-0.1.2/user/libs/libc/src/ |
D | Makefile | 26 @list='$(libc_sub_dirs)'; for subdir in $$list; do \ 33 @list='$(libc_sub_dirs)'; for subdir in $$list; do \
|
/DragonOS-0.1.2/kernel/src/filesystem/devfs/ |
D | internal.h | 36 struct List *list = &parent_dentry->subdirs_list; in __devfs_find_dentry() local 37 while (list_next(list) != &parent_dentry->subdirs_list) in __devfs_find_dentry() 39 list = list_next(list); in __devfs_find_dentry() 41 … struct vfs_dir_entry_t *target_dent = container_of(list, struct vfs_dir_entry_t, child_node_list); in __devfs_find_dentry()
|
D | devfs.c | 88 struct List *list = &dentry->subdirs_list; in devfs_readdir() local 92 list = list_next(list); in devfs_readdir() 93 if (list == &dentry->subdirs_list) // 找完了 in devfs_readdir() 101 … struct vfs_dir_entry_t *target_dent = container_of(list, struct vfs_dir_entry_t, child_node_list); in devfs_readdir()
|
/DragonOS-0.1.2/kernel/src/arch/ |
D | Makefile | 9 @list='$(kernel_arch_subdirs)'; for subdir in $$list; do \
|
/DragonOS-0.1.2/user/libs/ |
D | Makefile | 15 @list='$(user_libs_sub_dirs)'; for subdir in $$list; do \
|
/DragonOS-0.1.2/kernel/src/libs/libUI/ |
D | screen_manager.c | 141 list_init(&ui->list); in scm_register_alloc() 155 list_add(&scm_framework_list, &ui->list); in scm_register_alloc() 178 list_init(&ui->list); in scm_register() 189 list_add(&scm_framework_list, &ui->list); in scm_register() 248 …i_framework_t *ptr = container_of(list_next(&scm_framework_list), struct scm_ui_framework_t, list); in scm_enable_double_buffer() 268 } while (list_next(&ptr->list) != &scm_framework_list); // 枚举链表的每一个ui框架 in scm_enable_double_buffer() 315 …i_framework_t *ptr = container_of(list_next(&scm_framework_list), struct scm_ui_framework_t, list); in scm_reinit() 322 } while (list_next(&ptr->list) != &scm_framework_list); in scm_reinit()
|
/DragonOS-0.1.2/user/ |
D | Makefile | 39 @list='$(user_sub_dirs)'; for subdir in $$list; do \
|
/DragonOS-0.1.2/kernel/src/process/ |
D | kthread.c | 35 struct List list; member 64 list_init(&create->list); in __kthread_create_on_node() 67 list_append(&kthread_create_list, &create->list); in __kthread_create_on_node() 230 container_of(kthread_create_list.next, struct kthread_create_info_t, list); in kthreadd() 231 list_del_init(&create->list); in kthreadd()
|
/DragonOS-0.1.2/kernel/src/common/ |
D | mutex.h | 30 struct List list; member
|
D | list.h | 14 static inline void list_init(struct List *list) in list_init() argument 16 list->next = list; in list_init() 18 list->prev = list; in list_init()
|
/DragonOS-0.1.2/kernel/src/driver/pci/ |
D | pci.c | 20 list_add(pci_device_structure_list, &(ret->header.list)); \ 25 list_init(&(ret->header.list)); \ 26 pci_device_structure_list = &(ret->header.list); \ 435 …eader_t *ptr = container_of(pci_device_structure_list, struct pci_device_structure_header_t, list); in pci_init() 469 ptr = container_of(list_next(&(ptr->list)), struct pci_device_structure_header_t, list); in pci_init() 485 …eader_t *ptr = container_of(pci_device_structure_list, struct pci_device_structure_header_t, list); in pci_get_device_structure() 497 ptr = container_of(list_next(&(ptr->list)), struct pci_device_structure_header_t, list); in pci_get_device_structure()
|