Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/libs/
Didr.c129 struct idr_layer *new_node = __get_from_free_list(idp); in __idr_grow() local
130 if (NULL == new_node) in __idr_grow()
133 __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()
140 if (new_node != NULL) // 设置第0位 = 1, 同时维护树的大小 in __idr_grow()
144 if (new_node != NULL && new_node->full == IDR_FULL) in __idr_grow()