Home
last modified time | relevance | path

Searched refs:free_list (Results 1 – 4 of 4) sorted by relevance

/DragonOS-0.1.5/kernel/src/libs/
Didr.c39 p->ary[0] = idp->free_list; in __move_to_free_list()
41 idp->free_list = p; in __move_to_free_list()
69 struct idr_layer *item = idp->free_list; in __get_from_free_list()
77 idp->free_list = idp->free_list->ary[0]; in __get_from_free_list()
482 idp->free_list = NULL; in __idr_destroy_with_free()
509 idp->free_list = NULL; in idr_destroy()
847 if (NULL == ida_p->free_list) in ida_preload()
856 ida_p->free_list = bitmap; in ida_preload()
871 if (NULL == ida_p->free_list) in __get_ida_bitmap()
878 struct ida_bitmap *tmp = ida_p->free_list; in __get_ida_bitmap()
[all …]
/DragonOS-0.1.5/kernel/src/common/
Didr.h69 struct idr_layer *free_list; member
154 struct ida_bitmap *free_list; // 预分配的数据块 member
160 name.free_list = (NULL);
/DragonOS-0.1.5/kernel/src/ktest/
Dtest-idr.c31 assert(k_idr.free_list == NULL); in ktest_idr_case0()
55 assert(k_idr.free_list == NULL); in ktest_idr_case0()
177 assert(k_idr.free_list == NULL); in ktest_idr_case1()
259 assert(k_idr.free_list == NULL); in ktest_idr_case2()
342 assert(k_idr.free_list == NULL); in ktest_idr_case3()
401 assert(k_idr.free_list == NULL); in ktest_idr_case4()
444 assert(k_idr.free_list == NULL); in ktest_idr_case5()
457 assert(k_idr.free_list == NULL); in ktest_idr_case5()
524 assert(k_ida.free_list == NULL); in ktest_idr_case6()
562 assert(k_ida.free_list == NULL); in ktest_idr_case6()
/DragonOS-0.1.5/docs/kernel/core_api/
Ddata_structures.md269   通初始化IDA, 你需要保证调用函数之前, ida的free_list为空, 否则会导致内存泄漏.
415   通初始化IDR, 你需要保证调用函数之前, idr的free_list为空, 否则会导致内存泄漏.
520 …删除idr的所有已经分配的id.(所以您不用担心删除id之后, ida还会占用大量空间.) - 和`idr_remove_all`的区别是, 释放掉所有的空间(包括free_list的预分配空间)。