Home
last modified time | relevance | path

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

/xnu-11417.121.6/bsd/skywalk/lib/
H A Dcuckoo_hashtable_test.c90 static struct cht_obj *cht_objs; variable
164 cht_objs = sk_alloc_type_array(struct cht_obj, CHT_OBJ_MAX, in cht_obj_init()
166 VERIFY(cht_objs != NULL); in cht_obj_init()
169 cht_objs[i].co_key = i; in cht_obj_init()
171 read_random(&cht_objs[i].co_hash, sizeof(cht_objs[i].co_hash)); in cht_obj_init()
172 } while (cht_objs[i].co_hash == 0); in cht_obj_init()
173 os_ref_init(&cht_objs[i].co_refcnt, &cht_obj_refgrp); in cht_obj_init()
174 cht_objs[i].co_state = COS_NOT_ADDED; in cht_obj_init()
181 VERIFY(cht_objs != NULL); in cht_obj_fini()
183 os_ref_release_last(&cht_objs[i].co_refcnt); in cht_obj_fini()
[all …]