Lines Matching refs:strings
40 * Generic udev properties, key/value database based on modalias strings.
56 struct strbuf *strings;
142 strbuf_cleanup(trie->strings);
153 return strcmp(trie->strings->buf + val1->key_off,
154 trie->strings->buf + val2->key_off);
162 k = strbuf_add_string(trie->strings, key, strlen(key));
165 v = strbuf_add_string(trie->strings, value, strlen(value));
206 for (p = 0; (c = trie->strings->buf[node->prefix_off + p]); p++) {
227 s = strndup(trie->strings->buf + node->prefix_off, p);
231 off = strbuf_add_string(trie->strings, s, p);
262 off = strbuf_add_string(trie->strings, search + i+1, strlen(search + i+1));
402 fwrite(trie->strings->buf, trie->strings->len, 1, t.f);
403 h.strings_len = htole64(trie->strings->len);
433 log_debug("string store: %8zu bytes", trie->strings->len);
434 log_debug("strings start: %8"PRIu64, t.strings_off);
605 trie->strings = strbuf_new();
606 if (!trie->strings)
626 strbuf_complete(trie->strings);
635 log_debug("strings: %8zu bytes",
636 trie->strings->len);
637 log_debug("strings incoming: %8zu bytes (%8zu)",
638 trie->strings->in_len, trie->strings->in_count);
639 log_debug("strings dedup'ed: %8zu bytes (%8zu)",
640 trie->strings->dedup_len, trie->strings->dedup_count);