Lines Matching refs:entry
787 struct mbuf_tag_id_entry *entry = NULL;
824 /* Look for an existing entry */
826 SLIST_FOREACH(entry, &mtag_id_list, next) {
827 if (strncmp(string, entry->string, strlen(string) + 1) == 0) {
832 if (entry == NULL) {
838 entry = kalloc(MBUF_TAG_ID_ENTRY_SIZE(string));
839 if (entry == NULL) {
844 strlcpy(entry->string, string, strlen(string)+1);
845 entry->id = mtag_id_next;
847 SLIST_INSERT_HEAD(&mtag_id_list, entry, next);
851 *out_id = entry->id;