Lines Matching refs:next
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()
221 if (ptr->next == NULL) // 当前是最后一个项 in malloc_insert_free_list()
223 ptr->next = ck; in malloc_insert_free_list()
224 ck->next = NULL; in malloc_insert_free_list()
229 else if ((uint64_t)(ptr->next) > (uint64_t)ck) in malloc_insert_free_list()
232 ck->next = ptr->next; in malloc_insert_free_list()
233 ptr->next = ck; in malloc_insert_free_list()
234 ck->next->prev = ck; in malloc_insert_free_list()
245 ck->next = ptr; in malloc_insert_free_list()
252 ck->next = ptr; in malloc_insert_free_list()
253 ck->prev->next = ck; in malloc_insert_free_list()
258 ptr = ptr->next; in malloc_insert_free_list()
317 malloc_free_list = ck->next; in malloc()
320 ck->prev->next = ck->next; in malloc()
322 if (ck->next != NULL) // 当前不是最后一个块 in malloc()
323 ck->next->prev = ck->prev; in malloc()
333 new_ck->prev = new_ck->next = NULL; in malloc()