Lines Matching refs:key
37 PREFIX_STATS *stats_prefix_find(const char *key, const size_t nkey) { in stats_prefix_find() argument
43 assert(key != NULL); in stats_prefix_find()
45 for (length = 0; length < nkey && key[length] != '\0'; length++) { in stats_prefix_find()
46 if (key[length] == prefix_delimiter) { in stats_prefix_find()
56 hashval = hash(key, length) % PREFIX_HASH_SIZE; in stats_prefix_find()
59 if (strncmp(pfs->prefix, key, length) == 0) in stats_prefix_find()
76 strncpy(pfs->prefix, key, length); in stats_prefix_find()
89 void stats_prefix_record_get(const char *key, const size_t nkey, const bool is_hit) { in stats_prefix_record_get() argument
93 pfs = stats_prefix_find(key, nkey); in stats_prefix_record_get()
103 void stats_prefix_record_delete(const char *key, const size_t nkey) { in stats_prefix_record_delete() argument
107 pfs = stats_prefix_find(key, nkey); in stats_prefix_record_delete()
114 void stats_prefix_record_set(const char *key, const size_t nkey) { in stats_prefix_record_set() argument
118 pfs = stats_prefix_find(key, nkey); in stats_prefix_record_set()