Home
last modified time | relevance | path

Searched refs:top (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.5/kernel/src/libs/
Didr.c133 __swap(&new_node, &idp->top); in __idr_grow()
135 idp->top->ary[0] = new_node; in __idr_grow()
136 idp->top->layer = new_node ? (new_node->layer + 1) : 0; // 注意特判空指针 in __idr_grow()
137 idp->top->bitmap = 0; in __idr_grow()
138 idp->top->full = 0; // clear in __idr_grow()
142 idp->top->bitmap = 1; in __idr_grow()
146 idp->top->full = 1; // 别忘了初始化 full in __idr_grow()
162 while (NULL == idp->top || idp->top->full == IDR_FULL) in __idr_get_empty_slot()
167 int layer = idp->top->layer; in __idr_get_empty_slot()
171 struct idr_layer *cur_layer = idp->top; in __idr_get_empty_slot()
[all …]
/DragonOS-0.1.5/kernel/src/common/math/
Dlibm.h24 uint16_t top; member
40 uint16_t top; member
/DragonOS-0.1.5/user/libs/libc/src/include/export/
Dlibm.h28 uint16_t top;
44 uint16_t top;
/DragonOS-0.1.5/kernel/src/ktest/
Dtest-idr.c29 assert(k_idr.top == NULL); // 刚被创建,必须是NULL in ktest_idr_case0()
56 assert(k_idr.top == NULL); in ktest_idr_case0()
143 assert(k_idr.top == NULL); in ktest_idr_case1()
242 assert(k_idr.top != NULL); in ktest_idr_case2()
249 assert(k_idr.top != NULL); in ktest_idr_case2()
317 assert(k_idr.top != NULL); in ktest_idr_case3()
394 assert(k_idr.top == NULL); in ktest_idr_case4()
506 assert(k_ida.idr.top == NULL); in ktest_idr_case6()
518 assert(k_ida.idr.top != NULL); in ktest_idr_case6()
522 assert(k_ida.idr.top == NULL); in ktest_idr_case6()
[all …]
/DragonOS-0.1.5/kernel/src/common/
Didr.h68 struct idr_layer *top; member