Lines Matching refs:ids
83 void ids__free(struct hashmap *ids)
88 if (ids == NULL)
91 hashmap__for_each_entry(ids, cur, bkt) {
96 hashmap__free(ids);
99 int ids__insert(struct hashmap *ids, const char *id)
105 ret = hashmap__set(ids, id, data_ptr, &old_key, &old_data);
151 return ids__insert(ctx->ids, id);
175 ret = hashmap__set(ctx->ids, id, data_ptr, &old_key, &old_data);
210 ret = hashmap__set(ctx->ids, name, data_ptr, &old_key, &old_data);
225 return hashmap__find(ctx->ids, id, data) ? 0 : -1;
235 hashmap__for_each_entry(needles->ids, cur, bkt) {
286 hashmap__delete(ctx->ids, id, &old_key, &old_val);
299 ctx->ids = hashmap__new(key_hash, key_equal, NULL);
300 if (IS_ERR(ctx->ids)) {
316 hashmap__for_each_entry(ctx->ids, cur, bkt) {
320 hashmap__clear(ctx->ids);
332 hashmap__for_each_entry(ctx->ids, cur, bkt) {
336 hashmap__free(ctx->ids);
488 /* Does the event 'id' parse? Determine via ctx->ids if possible. */
494 if (hashmap__find(ctx->ids, id, /*value=*/NULL))