Searched refs:prev (Results 1 – 12 of 12) sorted by relevance
/DragonOS-0.1.8/user/libs/libc/src/ |
D | malloc.c | 33 struct malloc_mem_chunk_t *prev; // 上一个结点的指针 member 162 new_ck->prev = NULL; in malloc_enlarge() 183 if (((uint64_t)(ptr->prev) + ptr->prev->length == (uint64_t)ptr)) in malloc_merge_free_chunk() 187 ptr->prev->length += ptr->length; in malloc_merge_free_chunk() 188 ptr->prev->next = ptr->next; in malloc_merge_free_chunk() 190 malloc_free_list_end = ptr->prev; in malloc_merge_free_chunk() 192 ptr->next->prev = ptr->prev; in malloc_merge_free_chunk() 194 ptr = ptr->prev; in malloc_merge_free_chunk() 211 ck->prev = ck->next = NULL; in malloc_insert_free_list() 226 ck->prev = ptr; in malloc_insert_free_list() [all …]
|
/DragonOS-0.1.8/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.8/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.8/kernel/src/arch/x86_64/ |
D | context.rs | 13 prev: &'static mut process_control_block, in switch_process() 16 fp_state_save(prev); in switch_process() 28 switch_proc(prev, next); in switch_process()
|
/DragonOS-0.1.8/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) \ 213 void __switch_to(struct process_control_block *prev, struct process_control_block *next);
|
D | process.c | 109 void __switch_to(struct process_control_block *prev, struct process_control_block *next) in __switch_to() argument 119 : "=a"(prev->thread->fs)); in __switch_to() 121 : "=a"(prev->thread->gs)); in __switch_to()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | list.rs | 6 unsafe { *list }.prev = list; in list_init() 13 prev: 0 as *mut List, in default()
|
D | rbtree.rs | 196 fn prev(self) -> NodePtr<K, V> { in prev() method 657 let prev = self.tail.prev(); in next_back() localVariable 660 self.tail = prev; in next_back() 736 self.tail = self.tail.prev(); in next_back() 811 self.tail = self.tail.prev(); in next_back()
|
/DragonOS-0.1.8/kernel/src/time/ |
D | timer.rs | 290 let prev = TIMER_JIFFIES.fetch_add(add_jiffies, Ordering::SeqCst); in update_timer_jiffies() localVariable 295 return prev + add_jiffies; in update_timer_jiffies()
|
/DragonOS-0.1.8/docs/kernel/core_api/ |
D | kernel_api.md | 11   初始化一个List结构体,使其prev和next指针指向自身
|
/DragonOS-0.1.8/kernel/src/syscall/ |
D | mod.rs | 398 let prev = INIT_FLAG.swap(true, Ordering::SeqCst); in init() localVariable 399 if prev { in init()
|