Searched refs:ht (Results 1 – 3 of 3) sorted by relevance
| /xnu-10063.101.15/osfmk/kern/ |
| H A D | epoch_sync.c | 65 typedef struct ht { struct 88 ht_startup_init(ht_t *ht) in ht_startup_init() argument 90 for (uint32_t i = 0; i < ht->ht_size; i++) { in ht_startup_init() 91 queue_init(&ht->ht_bucket[i].htb_head); in ht_startup_init() 92 lck_spin_init(&ht->ht_bucket[i].htb_lock, &ht_lck_grp, NULL); in ht_startup_init() 99 ht_get_bucket(ht_t *ht, const uint64_t key) in ht_get_bucket() argument 101 assert3u((ht->ht_size & (ht->ht_size - 1)), ==, 0); in ht_get_bucket() 103 const uint32_t idx = os_hash_jenkins(&key, sizeof(key)) & (ht->ht_size - 1); in ht_get_bucket() 104 return &ht->ht_bucket[idx]; in ht_get_bucket() 108 ht_put(ht_t *ht, const uint64_t key, esync_t *new_value) in ht_put() argument [all …]
|
| H A D | epoch_sync.h | 76 struct ht; 84 extern struct ht esync_queue_ht; 92 extern struct ht esync_thread_ht; 142 extern wait_result_t esync_wait(struct ht *ns, uint64_t id, uint64_t epoch, 196 extern kern_return_t esync_wake(struct ht *ns, uint64_t id, uint64_t epoch,
|
| /xnu-10063.101.15/bsd/skywalk/lib/ |
| H A D | cuckoo_hashtable.h | 81 void cuckoo_hashtable_free(struct cuckoo_hashtable *ht); 100 void cuckoo_hashtable_foreach(struct cuckoo_hashtable *ht,
|