struct lttng_id_tracker_rcu *p = lf->p;
uint32_t hash = hash_32(id, 32);
bool allocated = false;
struct lttng_id_tracker_rcu *p = lf->p;
uint32_t hash = hash_32(id, 32);
bool allocated = false;
}
head = &p->id_hash[hash & (LTTNG_ID_TABLE_SIZE - 1)];
lttng_hlist_for_each_entry(e, head, hlist) {
}
head = &p->id_hash[hash & (LTTNG_ID_TABLE_SIZE - 1)];
lttng_hlist_for_each_entry(e, head, hlist) {
e->id = id;
hlist_add_head_rcu(&e->hlist, head);
if (allocated) {
rcu_assign_pointer(lf->p, p);
}
return 0;
e->id = id;
hlist_add_head_rcu(&e->hlist, head);
if (allocated) {
rcu_assign_pointer(lf->p, p);
}
return 0;