Searched refs:prev (Results 1 – 11 of 11) sorted by relevance
/DragonOS-0.1.5/kernel/src/mm/ |
D | vma.c | 50 void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev) in __vma_link_list() argument 53 vma->vm_prev = prev; in __vma_link_list() 54 if (prev) // 若指定了前一个结点,则直接连接 in __vma_link_list() 56 next = prev->vm_next; in __vma_link_list() 57 prev->vm_next = vma; in __vma_link_list() 79 struct vm_area_struct *prev, *next; in __vma_unlink_list() local 81 prev = vma->vm_prev; in __vma_unlink_list() 82 if (prev) in __vma_unlink_list() 83 prev->vm_next = next; in __vma_unlink_list() 88 next->vm_prev = prev; in __vma_unlink_list() [all …]
|
D | internal.h | 16 void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev);
|
/DragonOS-0.1.5/user/libs/libc/src/ |
D | malloc.c | 33 struct malloc_mem_chunk_t *prev; // 上一个结点的指针 member 161 new_ck->prev = NULL; in malloc_enlarge() 182 if (((uint64_t)(ptr->prev) + ptr->prev->length == (uint64_t)ptr)) in malloc_merge_free_chunk() 186 ptr->prev->length += ptr->length; in malloc_merge_free_chunk() 187 ptr->prev->next = ptr->next; in malloc_merge_free_chunk() 189 malloc_free_list_end = ptr->prev; in malloc_merge_free_chunk() 191 ptr->next->prev = ptr->prev; in malloc_merge_free_chunk() 193 ptr = ptr->prev; in malloc_merge_free_chunk() 210 ck->prev = ck->next = NULL; in malloc_insert_free_list() 225 ck->prev = ptr; in malloc_insert_free_list() [all …]
|
/DragonOS-0.1.5/kernel/src/common/ |
D | list.h | 10 struct List *prev, *next; member 18 list->prev = list; in list_init() 32 node->prev = entry; in list_add() 34 node->next->prev = node; in list_add() 47 struct List *tail = entry->prev; in list_append() 58 entry->next->prev = entry->prev; in list_del() 59 entry->prev->next = entry->next; in list_del() 78 if (old->prev != NULL) in list_replace() 79 old->prev->next = new; in list_replace() 80 new->prev = old->prev; in list_replace() [all …]
|
/DragonOS-0.1.5/kernel/src/sched/ |
D | core.c | 9 void switch_proc(struct process_control_block *prev, struct process_control_block *proc) in switch_proc() argument 13 switch_to(prev, proc); in switch_proc()
|
D | sched.h | 69 void switch_proc(struct process_control_block *prev, struct process_control_block *proc);
|
/DragonOS-0.1.5/kernel/src/process/ |
D | process.h | 54 #define switch_to(prev, next) … argument 68 … : "=m"(prev->thread->rsp), "=m"(prev->thread->rip) \ 69 … : "m"(next->thread->rsp), "m"(next->thread->rip), "D"(prev), "S"(next) \ 223 void __switch_to(struct process_control_block *prev, struct process_control_block *next);
|
D | process.c | 106 void __switch_to(struct process_control_block *prev, struct process_control_block *next) in __switch_to() argument 115 __asm__ __volatile__("movq %%fs, %0 \n\t" : "=a"(prev->thread->fs)); in __switch_to() 116 __asm__ __volatile__("movq %%gs, %0 \n\t" : "=a"(prev->thread->gs)); in __switch_to()
|
/DragonOS-0.1.5/kernel/src/libs/ |
D | list.rs | 6 unsafe { *list }.prev = list; in list_init() 13 prev: 0 as *mut List, in default()
|
/DragonOS-0.1.5/kernel/src/arch/x86_64/ |
D | context.rs | 11 prev: &'static mut process_control_block, in switch_process() 16 switch_proc(prev, next); in switch_process()
|
/DragonOS-0.1.5/docs/kernel/core_api/ |
D | kernel_api.md | 11   初始化一个List结构体,使其prev和next指针指向自身
|