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()
163 new_ck->next = NULL; in malloc_enlarge()
179 malloc_mem_chunk_t *ptr = malloc_free_list->next; in malloc_merge_free_chunk()
188 ptr->prev->next = ptr->next; in malloc_merge_free_chunk()
189 if (ptr->next == NULL) in malloc_merge_free_chunk()
192 ptr->next->prev = ptr->prev; in malloc_merge_free_chunk()
196 ptr = ptr->next; in malloc_merge_free_chunk()
211 ck->prev = ck->next = NULL; in malloc_insert_free_list()
222 if (ptr->next == NULL) // 当前是最后一个项 in malloc_insert_free_list()
224 ptr->next = ck; in malloc_insert_free_list()
225 ck->next = NULL; in malloc_insert_free_list()
230 else if ((uint64_t)(ptr->next) > (uint64_t)ck) in malloc_insert_free_list()
233 ck->next = ptr->next; in malloc_insert_free_list()
234 ptr->next = ck; in malloc_insert_free_list()
235 ck->next->prev = ck; in malloc_insert_free_list()
246 ck->next = ptr; in malloc_insert_free_list()
253 ck->next = ptr; in malloc_insert_free_list()
254 ck->prev->next = ck; in malloc_insert_free_list()
259 ptr = ptr->next; in malloc_insert_free_list()
318 malloc_free_list = ck->next; in malloc()
321 ck->prev->next = ck->next; in malloc()
323 if (ck->next != NULL) // 当前不是最后一个块 in malloc()
324 ck->next->prev = ck->prev; in malloc()
334 new_ck->prev = new_ck->next = NULL; in malloc()