X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Frculfhash.h;h=0a739ee86f7d11b1e9caa4b8bbb9091dbc0ff1b9;hp=5e149ef629de692fbc5b1f4aeed371269d18b2b4;hb=4e9b9fbf56ad649395778b7385baaa44d8db032c;hpb=3883c0e5c31408fa15090c6e1ef1e0316530f773 diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index 5e149ef..0a739ee 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -197,6 +197,23 @@ void cds_lfht_lookup(struct cds_lfht *ht, void *key, size_t key_len, */ void cds_lfht_next_duplicate(struct cds_lfht *ht, struct cds_lfht_iter *iter); +/* + * cds_lfht_first - get the first node in the table. + * + * Output in "*iter". *iter->node set to NULL if table is empty. + * Call with rcu_read_lock held. + */ +void cds_lfht_first(struct cds_lfht *ht, struct cds_lfht_iter *iter); + +/* + * cds_lfht_next - get the next node in the table. + * + * Input/Output in "*iter". *iter->node set to NULL if *iter was + * pointing to the last table node. + * Call with rcu_read_lock held. + */ +void cds_lfht_next(struct cds_lfht *ht, struct cds_lfht_iter *iter); + /* * cds_lfht_add - add a node to the hash table. *