Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/libs/
Didr.c171 struct idr_layer *cur_layer = idp->top; in __idr_get_empty_slot() local
174 stk[layer] = cur_layer; in __idr_get_empty_slot()
175 int pos = __lowbit_id(~cur_layer->full); in __idr_get_empty_slot()
184 cur_layer = cur_layer->ary[pos]; in __idr_get_empty_slot()
186 if (layer > 0 && NULL == cur_layer) // 只有非叶子节点才需要开辟儿子节点 in __idr_get_empty_slot()
189 cur_layer = __get_from_free_list(idp); in __idr_get_empty_slot()
190 if (NULL == cur_layer) in __idr_get_empty_slot()
192 cur_layer->layer = layer - 1; // 儿子节点的layer in __idr_get_empty_slot()
193 cur_layer->full = 0; in __idr_get_empty_slot()
194 cur_layer->bitmap = 0; in __idr_get_empty_slot()
[all …]