Lines Matching refs:strings
37 * Generic udev properties, key/value database based on modalias strings.
50 struct strbuf *strings;
134 return strcmp(trie->strings->buf + val1->key_off,
135 trie->strings->buf + val2->key_off);
143 k = strbuf_add_string(trie->strings, key, strlen(key));
146 v = strbuf_add_string(trie->strings, value, strlen(value));
187 for (p = 0; (c = trie->strings->buf[node->prefix_off + p]); p++) {
208 s = strndup(trie->strings->buf + node->prefix_off, p);
212 off = strbuf_add_string(trie->strings, s, p);
243 off = strbuf_add_string(trie->strings, search + i+1, strlen(search + i+1));
383 fwrite(trie->strings->buf, trie->strings->len, 1, t.f);
384 h.strings_len = htole64(trie->strings->len);
414 log_debug("string store: %8zu bytes", trie->strings->len);
415 log_debug("strings start: %8"PRIu64, t.strings_off);
612 trie->strings = strbuf_new();
613 if (!trie->strings) {
638 strbuf_complete(trie->strings);
647 log_debug("strings: %8zu bytes",
648 trie->strings->len);
649 log_debug("strings incoming: %8zu bytes (%8zu)",
650 trie->strings->in_len, trie->strings->in_count);
651 log_debug("strings dedup'ed: %8zu bytes (%8zu)",
652 trie->strings->dedup_len, trie->strings->dedup_count);
683 strbuf_cleanup(trie->strings);