Searched refs:id_pool (Results 1 – 2 of 2) sorted by relevance
20 struct sip_svc_id_pool *id_pool = NULL; in sip_svc_id_mgr_create() local29 id_pool = k_malloc(sizeof(struct sip_svc_id_pool)); in sip_svc_id_mgr_create()30 if (!id_pool) { in sip_svc_id_mgr_create()33 id_pool->size = size; in sip_svc_id_mgr_create()35 id_pool->id_list = k_malloc(size * sizeof(uint32_t)); in sip_svc_id_mgr_create()36 if (!id_pool->id_list) { in sip_svc_id_mgr_create()37 k_free(id_pool); in sip_svc_id_mgr_create()46 id_pool->id_mask = k_malloc(mask_size * sizeof(uint32_t)); in sip_svc_id_mgr_create()47 if (!id_pool->id_mask) { in sip_svc_id_mgr_create()48 k_free(id_pool->id_list); in sip_svc_id_mgr_create()[all …]
41 void sip_svc_id_mgr_delete(struct sip_svc_id_pool *id_pool);43 uint32_t sip_svc_id_mgr_alloc(struct sip_svc_id_pool *id_pool);45 void sip_svc_id_mgr_free(struct sip_svc_id_pool *id_pool, uint32_t id);