Searched refs:nextid (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.2/kernel/src/libs/ |
D | idr.c | 558 void *idr_find_next_getid(struct idr *idp, int64_t start_id, int *nextid) in idr_find_next_getid() argument 560 BUG_ON(nextid == NULL); in idr_find_next_getid() 563 *nextid = -1; in idr_find_next_getid() 569 *nextid = 0; in idr_find_next_getid() 590 *nextid = -1; in idr_find_next_getid() 621 *nextid = (((uint64_t)*nextid) << IDR_BITS) | layer_id; // 更新答案 in idr_find_next_getid() 634 (*nextid) >>= IDR_BITS; // 维护答案 in idr_find_next_getid() 642 *nextid = -1; in idr_find_next_getid() 656 int nextid; in idr_find_next() local 657 void *ptr = idr_find_next_getid(idp, start_id, &nextid); in idr_find_next()
|
/DragonOS-0.1.2/kernel/src/ktest/ |
D | test-idr.c | 291 int nextid; in ktest_idr_case3() local 292 int *ptr = idr_find_next_getid(&k_idr, i - 1, &nextid); in ktest_idr_case3() 297 assert(nextid == i); in ktest_idr_case3() 302 assert(nextid == -1); in ktest_idr_case3() 323 int nextid; in ktest_idr_case3() local 324 int *ptr = idr_find_next_getid(&k_idr, i - 1, &nextid); in ktest_idr_case3() 330 assert(nextid == target); in ktest_idr_case3() 335 assert(nextid == -1); in ktest_idr_case3()
|
/DragonOS-0.1.2/kernel/src/common/ |
D | idr.h | 92 void *idr_find_next_getid(struct idr *idp, int64_t start_id, int *nextid);
|
/DragonOS-0.1.2/docs/kernel/core_api/ |
D | data_structures.md | 576 `void *idr_find_next_getid(struct idr *idp, int start_id, int *nextid)` 580   传进一个start_id,返回满足 "id大于start_id的最小id" 所对应的数据指针。同时,你获取到这个满足条件的最小id, 即参数中的 *nextid。
|