Searched refs:idp (Results 1 – 3 of 3) sorted by relevance
/DragonOS-0.1.8/kernel/src/libs/ |
D | idr.c | 21 void idr_init(struct idr *idp) in idr_init() argument 23 memset(idp, 0, sizeof(struct idr)); in idr_init() 24 spin_init(&idp->lock); in idr_init() 33 static void __move_to_free_list(struct idr *idp, struct idr_layer *p) in __move_to_free_list() argument 36 spin_lock_irqsave(&idp->lock, flags); in __move_to_free_list() 39 p->ary[0] = idp->free_list; in __move_to_free_list() 41 idp->free_list = p; in __move_to_free_list() 43 ++(idp->id_free_cnt); in __move_to_free_list() 45 spin_unlock_irqrestore(&idp->lock, flags); in __move_to_free_list() 54 static void *__get_from_free_list(struct idr *idp) in __get_from_free_list() argument [all …]
|
/DragonOS-0.1.8/kernel/src/common/ |
D | idr.h | 85 int idr_preload(struct idr *idp, gfp_t gfp_mask); 86 int idr_alloc(struct idr *idp, void *ptr, int *id); 87 void *idr_remove(struct idr *idp, int id); 88 void idr_remove_all(struct idr *idp); 89 void idr_destroy(struct idr *idp); 90 void *idr_find(struct idr *idp, int id); 91 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); 93 int idr_replace_get_old(struct idr *idp, void *ptr, int id, void **oldptr); 94 int idr_replace(struct idr *idp, void *ptr, int id); [all …]
|
/DragonOS-0.1.8/docs/kernel/core_api/ |
D | data_structures.md | 411 `void idr_init(struct idr *idp)` 418 **idp** 427 `int idr_preload(struct idr *idp, gfp_t gfp_mask)` 434 **idp** 448 `int idr_alloc(struct idr *idp, void *ptr, int *id)` 456 **idp** 474 `void* idr_remove(struct idr *idp, int id)` 482 **idp** 496 `void idr_remove_all(struct idr *idp)` 506 **idp** [all …]
|