Home
last modified time | relevance | path

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

/DragonOS-0.1.8/docs/kernel/core_api/
Ddata_structures.md554 `void *idr_find_next(struct idr *idp, int start_id)`
558   传进一个start_id,返回满足 "id大于start_id的最小id" 所对应的数据指针。
565 **start_id**
576 `void *idr_find_next_getid(struct idr *idp, int start_id, int *nextid)`
580   传进一个start_id,返回满足 "id大于start_id的最小id" 所对应的数据指针。同时,你获取到这个满足条件的最小id, 即参数中的 *nextid。
587 **start_id**
/DragonOS-0.1.8/kernel/src/common/
Didr.h91 void *idr_find_next(struct idr *idp, int start_id);
92 void *idr_find_next_getid(struct idr *idp, int64_t start_id, int *nextid);
/DragonOS-0.1.8/kernel/src/libs/
Didr.c558 void *idr_find_next_getid(struct idr *idp, int64_t start_id, int *nextid) in idr_find_next_getid() argument
567 ++start_id; in idr_find_next_getid()
568 start_id = max(0, start_id); // 特判负数 in idr_find_next_getid()
588 if ((start_id >> ((layer + 1) * IDR_BITS)) > 0) in idr_find_next_getid()
601 pos_i[layer] = cur_state ? 0 : ((start_id >> (layer * IDR_BITS)) & IDR_MASK); in idr_find_next_getid()
654 void *idr_find_next(struct idr *idp, int start_id) in idr_find_next() argument
657 void *ptr = idr_find_next_getid(idp, start_id, &nextid); in idr_find_next()