/DragonOS-0.1.5/user/libs/libc/src/ |
D | malloc.c | 34 struct malloc_mem_chunk_t *next; // 下一个结点的指针 member 95 ptr = ptr->next; in malloc_query_free_chunk_bf() 119 ptr = ptr->next; in malloc_query_free_chunk_ff() 162 new_ck->next = NULL; in malloc_enlarge() 178 malloc_mem_chunk_t *ptr = malloc_free_list->next; in malloc_merge_free_chunk() 187 ptr->prev->next = ptr->next; in malloc_merge_free_chunk() 188 if (ptr->next == NULL) in malloc_merge_free_chunk() 191 ptr->next->prev = ptr->prev; in malloc_merge_free_chunk() 195 ptr = ptr->next; in malloc_merge_free_chunk() 210 ck->prev = ck->next = NULL; in malloc_insert_free_list() [all …]
|
/DragonOS-0.1.5/kernel/src/common/ |
D | list.h | 10 struct List *prev, *next; member 16 list->next = list; in list_init() 30 node->next = entry->next; in list_add() 34 node->next->prev = node; in list_add() 36 entry->next = node; in list_add() 58 entry->next->prev = entry->prev; in list_del() 59 entry->prev->next = entry->next; in list_del() 79 old->prev->next = new; in list_replace() 81 if (old->next != NULL) in list_replace() 82 old->next->prev = new; in list_replace() [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | utils.rs | 6 let comp = path_split.next().unwrap_or(""); in split_path() 7 let rest_opt = path_split.next(); in split_path() 17 let comp = path_split.next().unwrap_or(""); in rsplit_path() 18 let rest_opt = path_split.next(); in rsplit_path()
|
D | VFS.h | 117 struct vfs_filesystem_type_t *next; member
|
/DragonOS-0.1.5/kernel/src/mm/ |
D | vma.c | 52 struct vm_area_struct *next = NULL; in __vma_link_list() local 56 next = prev->vm_next; in __vma_link_list() 61 next = mm->vmas; in __vma_link_list() 65 vma->vm_next = next; in __vma_link_list() 67 if (next != NULL) in __vma_link_list() 68 next->vm_prev = vma; in __vma_link_list() 79 struct vm_area_struct *prev, *next; in __vma_unlink_list() local 80 next = vma->vm_next; in __vma_unlink_list() 83 prev->vm_next = next; in __vma_unlink_list() 85 mm->vmas = next; in __vma_unlink_list() [all …]
|
/DragonOS-0.1.5/kernel/src/process/ |
D | process.h | 54 #define switch_to(prev, next) … argument 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 108 initial_tss[proc_current_cpu_id].rsp0 = next->thread->rbp; in __switch_to() 118 __asm__ __volatile__("movq %0, %%fs \n\t" ::"a"(next->thread->fs)); in __switch_to() 119 __asm__ __volatile__("movq %0, %%gs \n\t" ::"a"(next->thread->gs)); in __switch_to()
|
D | kthread.c | 233 container_of(kthread_create_list.next, struct kthread_create_info_t, list); in kthreadd()
|
/DragonOS-0.1.5/kernel/src/libs/ |
D | list.rs | 7 unsafe { *list }.next = list; in list_init() 14 next: 0 as *mut List, in default()
|
/DragonOS-0.1.5/kernel/src/arch/x86_64/ |
D | context.rs | 12 next: &'static mut process_control_block, in switch_process() 16 switch_proc(prev, next); in switch_process()
|
/DragonOS-0.1.5/kernel/src/sched/ |
D | core.rs | 83 let next: &'static mut process_control_block; in __sched() localVariable 86 next = p; in __sched() 89 rt_scheduler.enqueue_front(next); in __sched()
|
/DragonOS-0.1.5/kernel/src/io/ |
D | device.rs | 273 fn next(&mut self) -> Option<<Self as Iterator>::Item> { in next() method
|
/DragonOS-0.1.5/kernel/src/driver/pci/ |
D | pci.rs | 462 fn next(&mut self) -> Option<Self::Item> { in next() method
|
/DragonOS-0.1.5/docs/kernel/core_api/ |
D | kernel_api.md | 11   初始化一个List结构体,使其prev和next指针指向自身
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | entry.rs | 736 let long_entry: LongDirEntry = long_name_gen.next().unwrap(); 1538 fn next(&mut self) -> Option<Self::Item> { in next() method 2208 fn next(&mut self) -> Option<Self::Item> { in next() method 2291 fn next(&mut self) -> Option<Self::Item> { in next() method
|
D | fs.rs | 751 return self.cluster_iter(start_cluster).skip(n).next(); in get_cluster_by_relative() 1648 fn next(&mut self) -> Option<Self::Item> { in next() method
|