Home
last modified time | relevance | path

Searched refs:prev (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.2/kernel/src/mm/
Dvma.c50 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 …]
Dinternal.h16 void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev);
/DragonOS-0.1.2/user/libs/libc/src/
Dmalloc.c33 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.2/kernel/src/common/
Dlist.h10 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.2/kernel/src/libs/
Dlist.rs6 unsafe{*list}.prev = list; in list_init()
12 let x= Self { prev: 0 as *mut List, next: 0 as *mut List }; in default()
/DragonOS-0.1.2/kernel/src/process/
Dprocess.h54 #define switch_proc(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) \
Dprocess.c109 void __switch_to(struct process_control_block *prev, struct process_control_block *next) in __switch_to() argument
118 __asm__ __volatile__("movq %%fs, %0 \n\t" : "=a"(prev->thread->fs)); in __switch_to()
119 __asm__ __volatile__("movq %%gs, %0 \n\t" : "=a"(prev->thread->gs)); in __switch_to()
/DragonOS-0.1.2/docs/kernel/core_api/
Dkernel_api.md11   初始化一个List结构体,使其prev和next指针指向自身
/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.c331 …struct vfs_dir_entry_t *prev_dentry = list_entry(target_list->prev, struct vfs_dir_entry_t, child_… in vfs_mkdir()